print(map(lambda x:1 if x>='A'else 0,input()))