s = eval(input())

if 0 <= ord(s) - ord("a") <= 25:

    print("a")

else:

    print("A")
a = eval(input())

print(("A" if a.isupper() else "a"))
s = eval(input())
if 0 <= ord(s) - ord("a") <= 25:
    print("a")
else:
    print("A")

a = eval(input())
print(("A" if a.isupper() else "a"))

-s = eval(input()) -if 0 <= ord(s) - ord("a") <= 25: -    print("a") -else: -    print("A") +a = eval(input()) +print(("A" if a.isupper() else "a"))