import base64 b = bytes(input(""), "utf-8") m = base64.b64encode(b) print(m.decode('ascii'))