input = "UCGGP,V CZ LOGP TGCJOSKY SDG JUO SVYO DB WDRVO. " \
        "SDYYDMVBT PDKG JVEDSS CADKJ UOG JGCLOY MO JGCIXOR UOG JD C " \
        "ADDX JGCROG VB OY-XUCYVYV HDKX,  EKJ C JCVY DB UOG CBR V UCLO " \
        "AOOB ICGGPVBT DKJ C SOM ACIXTGDKBR IUOIXH DS ZP DMB. YVXO PDK V SDKBR YVJJYO " \
        "JD GCVHO ZP HKHEVIVDBH, CBR, TVLOB UOG EGDSOHHVDB, JUOGO VH BDJUVBT KBKHKCY " \
        "CADKJ UOG AOVBT UOGO VB ICVGD. HUO HOOZH JD AO MOYY XBDMB, MOYY YVXOR, CBR ZDHJ " \
        "VZEDGJCBJYP, MOYY JGKHJOR. VS MO UCR BDJUVBT OYHO JD TD DB V JDD MDKYR UCLO MGVJJOB " \
        "UOG DSS CH C YOCR, UDMOLOG JMD RCPH CTD ZP CTOBJH YDHJ JGCIX DS UOG CBR HUO " \
        "RVHCEEOCGOR.MO GCB CYY JUO KHKCY IUOIXH CBR SDKBR UOG VB IYODECJGC UDHEVJCY, " \
        "GOIDLOGVBT SGDZ CB CHHCKYJ. JUO YDICY HJCJVDB EGDIKGOR IGOROBJVCYH CBR IDLOG " \
        "SDG ZO CH C YDICY ROJOIJVLO CBR V ICGGVOR DKJ C HJCBRCGR SVOYR VBJOGLVOM MUVIU UCH " \
        "TVLOB KH C UOCRHJCGJ DB JUO VBLOHJVTCJVDB. WDRVO'H ZVHSDGJKBO VH ZP YKIX.HUO VH " \
        "UOGO JD JGCIX RDMB C RDIKZOBJ CEECGOBJYP MGVJJOB AP JUO GDZCB UVHJDGVCB JCIVJKH. " \
        "JUO UKBJ SDG JUO ADDX HJCGJOR MUOB HDZODBO SDKBR C RDIKZOBJ VB JUO LCJVICB " \
        "YVAGCGP MGVJJOB AP YC JDKGOJ. VJ VBIYKROR ONJGCIJH SGDZ C YCJVB RDIKZOBJ JUCJ " \
        "CEEOCGOR JD AO CB ORVJOR LOGHVDB DS JUO CTGVIDYC CBR WDRVO JOYYH ZO JUCJ JUO " \
        "HJPYO MCH GOIDTBVHCAYP JCIVJKH, CBR HDZO DS JUO HOBJOBIOH MOGO JUO HCZO CH " \
        "XBDMB LOGHVDBH DS JUO DGVTVBCY. UDMOLOG JUOGO MOGO C SOM HVTBVSVICBJ IUCBTOH " \
        "CBR WDRVO JGCLOYYOR JD GDZO JD HOCGIU SDG ZDGO. VB JUO CGIUVLOH HUO SDKBR " \
        "JCIVJKH’ ROCJUAOR IDBSOHHVDB MUVIU GOSOGGOR JD C RDIKZOBJ HD HUDIXVBT JUCJ " \
        "JCIVJKH UVZHOYS UCR DGROGOR VJ JD AO HEYVJ KE CBR IDBIOCYOR CIGDHH C BKZAOG DS " \
        "HVJOH VB JUO CBIVOBJ MDGYR. BD IYKOH MOGO TVLOB JD JUO BCJKGO DS JUO HVJOH, AKJ " \
        "JUO RDIKZOBJ IDBIYKROR MVJU JUO HJCJOZOBJ “ZP YOTCIP MVYY AO C JGKJU MUVIU DKJYCHJH " \
        "JUO ZDKBJCVB DS TDRH MUVIU TKCGRH VJH TCJOMCP“. JUVH YOR WDRVO JD HKHEOIJ JUCJ JUO " \
        "EPGCZVRH CJ TVQC MOGO C TDDR EYCIO JD HJCGJ. JUCJ MCH MUOGO HUO MCH CJJCIXOR.VJ " \
        "JDDX WDRVO JUGOO RCPH JD SVBR JUO RDIKZOBJ UVRROB CZDBT JUO HJDBOH, CBR ZP TKOHH " \
        "VH JUCJ HDZODBO MCH MCJIUVBT UOG KBJVY HUO SDKBR VJ YCJO DB JUO JUVGR RCP. HUO " \
        "DBYP UCR VJ SDG SVLO ZVBKJOH AOSDGO HUO MCH GDAAOR, AKJ HUO ZCRO JUO ZDHJ DS " \
        "JUCJ JVZO, EUDJDTGCEUVBT JUO SGCTZOBJ. JUO CJJCIXOGH JDDX UOG EUDBO, AKJ JUO " \
        "VZCTO UCR CYGOCRP KEYDCROR JD JUO IYDKR, HD CJ YOCHJ MO XBDM MUCJ VJ HCVR. " \
        "EOGUCEH ZDGO VZEDGJCBJYP MO ZCP UCLO CBDJUOG IYKO JD JUO YDICJVDB DS JUO " \
        "BONJ SGCTZOBJ, “JUO SKYY JGKJU ZKHJ GOZCVB UVRROB SDG BDM, CBR CH GOZCGXOR " \
        "AP ZP JGKHJOR HYCLO CBR IDBSVRCBJ JVGD, MUCJ AOJJOG EYCIO JD UVRO C ADDX " \
        "JUCB CZDBT ADDXH?”"

dict = {
    "A" : "B",
    "B" : "N",
    "C" : "A",
    "D" : "O",
    "E" : "P",
    "F" : "Q",
    "G" : "R",
    "H" : "S",
    "I" : "C",
    "J" : "T",
    "K" : "U",
    "L" : "V",
    "M" : "W",
    "N" : "X",
    "O" : "E",
    "P" : "Y",
    "Q" : "Z",
    "R" : "D",
    "S" : "F",
    "T" : "G",
    "U" : "H",
    "V" : "I",
    "W" : "J",
    "X" : "K",
    "Y" : "L",
    "Z" : "M"}

output = ""
for char in input:
    if char.isalpha():
        output += dict[char]
    else:
        output += char
print(output)
