x=eval(input())



if x.islower():

  print('a')

else:

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

print(('A' if a.isupper() else 'a'))
x = eval(input())
if x.islower():
    print("a")
else:
    print("A")

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

-x = eval(input()) -if x.islower(): -    print("a") -else: -    print("A") +a = eval(input()) +print(("A" if a.isupper() else "a"))