for x in input():print(0 if x>"`" else 1)