x = eval(input())

if x.isupper():

  print('A')

else:

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

if a.isupper():

  print('A')

else:

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

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

-x = eval(input()) -if x.isupper(): +a = eval(input()) +if a.isupper():