a=eval(input())

if a in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':

    print('A')

else:

    print('a') 
x=str(eval(input()))

X=x.islower()

if X:

    print('a')

else:

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

x = str(eval(input()))
X = x.islower()
if X:
    print("a")
else:
    print("A")

-a = eval(input()) -if a in "ABCDEFGHIJKLMNOPQRSTUVWXYZ": +x = str(eval(input())) +X = x.islower() +if X: +    print("a") +else: -else: -    print("a")