#!/usr/bin/env python
# coding : utf-8


a = [[0x13, 0x4A, 0x76, 0x59],
     [0x45, 0x43, 0x4E, 0x44],
     [0x52, 0x4F, 0x4B, 0x51],
     [0x54, 0x7D, 0x63, 0x7D],
     [0x5F, 0x56, 0x13, 0x7D],
     [0x67, 0x67, 0x70, 0x70],
     [0x70, 0x7D, 0x47, 0x4E],
     [0x71, 0x4B, 0x7D, 0x51],
     [0x71, 0x51, 0x63, 0x52],
     [0x7D, 0x57, 0x7D, 0x67],
     [0x7D, 0x5B, 0x50, 0x11]]

ans = []
for i in a:
    temp = ''
    for j in i:
        temp += chr(j ^ 0x22)

    ans.append(temp[::-1])

print ans

sequence = [2, 1, 8, 4, 11, 3, 7, 6, 10, 9, 5]
flag = ''
for i in sequence:
    flag += ans[i - 1]

print flag
