#!/usr/bin/env python3
"""B ЛЮБOM ДOME 3MEЮ HANДN TPETЬЮ
CЛOBA EN HA3OBN MAГNЧECKNE"""
from \
sys \
import \
stdin, \
argv
БE3YMHЫE_OHA_ПOKAЖET_3HAKN = {
"А": "A",
"В":"B", "Е":"E",
"З":"3","И":"N",
"Й":"N", "К":"K",
"М":"M","Н":"H","О":"O",
"Р":"P","С":"C","Т":"T","У":"Y",
"Х":"X","Ш":
"W","Я":
"R"
} # CONДEWЬ C YMA ПPOЧTR
БE3HOГNM = lambda ATNC: БE3YMHЫE_OHA_ПOKAЖET_3HAKN.get(ATNC, ATNC)
YBNДNWЬ_YЖAC_N = open(argv[1]) if len(argv)-1 else stdin
# БEГN ПOKA БE3HOГNM
print(''.join(map(БE3HOГNM,
# HE CЛYWAN CЛOBA MAГNЧECKNE
YBNДNWЬ_YЖAC_N.read().upper())))
# БEГN OT TEKCTA CTPAWHOГO