key = [0x54, 0x48, 0x45, 0x50, 0x49, 0x52,0x41, 0x54, 0x45, 0x49, 0x53, 0x5a]
keys = [0x3f, 0x2a, 0x2d, 0x2f, 0x35, 0x39, 0x37,0x24, 0x3d, 0x23, 0x26, 0x40]

username = input("Username: ")
password = []
for i in range(0,12,2):
	x = ord(username[i]) ^ (key[i] + 50)
	x = (x % 100) + 65
	password.append(chr(x))

	x = keys[(i*9 + 5) % 12]
	password.append(chr(x))
	print(password)
	print(i)

print("".join(password))
