s = input()
upper_s = s.upper()
print(s[7], upper_s[7], (s[7] != upper_s[7]))
