import base64

def xor(x, y):
  return int(x,16)^int(y,16)

def decrypt(data,key):
  ans=""
  for temp in [data[a:a+2] for a in range(0,len(data),2)]:
    ans=ans+str(hex(xor(temp,key)))[2:]
  return ans 

def encrypt(s):
  # encrypt
  hex_list = [hex(ord(x))[2:] for x in s]
  hex_state = ''
  for x in hex_list:
    hex_state += str(x)
  xor_key = "38"
  a = decrypt(hex_state, xor_key)
  b = base64.b64encode(a.decode('hex'))
  print b
  #decrypt
  hex_list2 = []
  ascii_list = []
  q = b.decode('base64').encode('hex')
  r = str(decrypt(q, xor_key))
  for x in range(0, len(r), 2):
    hex_list2.append("0x"+r[x:x+2])
  for x in hex_list2:
    ascii_list.append(int(x,0))
  return "".join(chr(x) for x in ascii_list)
  
    
s = raw_input()
print encrypt(s)