for c in input():print(1 if c<'a' else 0)