# -*- coding: utf-8 -*-"""Created on Sun Sep 24 21:05:57 2017@author: """x='a b c d e f g h i j k l m n o p q r s t u v w x y z'.split(' ')y='n o p q r s t u v w x y z a b c d e f g h i j k l m'.split(' ')#X=map(lambda x:x.upper(),x)X='A B C D E F G H I J K L M N O P Q R S T U V W X Y Z'.split(' ')#Y=map(lambda x:x.upper(),y)Y='N O P Q R S T U V W X Y Z A B C D E F G H I J K L M'.split(' ')kaisa=dict(zip(x+X,y+Y))def fun(s): ans=[] for i in range(len(s)): if s[i] in kaisa.keys(): ans.append(kaisa[s[i]]) else: ans.append(s[i]) return ''.join(ans)input_s=input()input_l=list(input_s)ll=len(input_l)result=[]for i in range(ll): result.append(fun(input_l[i]))print(''.join(result))