print("".join([str(0+c.isupper()) for c in input()]))