// editor1
c=input().strip()
print(ord(c)+(ord('a')-ord('A'))*(ord('A')<=ord(c)<=ord('Z')))