alph = eval(input())

if alph.isupper():

    print("A")

else:

    print("a")

a = eval(input())



if a.isupper():

    print("A")

else:

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

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

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