while 7:print raw_input().decode("u8").encode("punycode")