a=eval(input())

print(("A" if 65<=ord(a)<=90 else "a"))
a = eval(input())

if a in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":

    print("A")

else:

    print("a")
a = eval(input())
print(("A" if 65 <= ord(a) <= 90 else "a"))

a = eval(input())
if a in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
    print("A")
else:
    print("a")

-print(("A" if 65 <= ord(a) <= 90 else "a")) +if a in "ABCDEFGHIJKLMNOPQRSTUVWXYZ": +    print("A") +else: +    print("a")