a=eval(input())

Flag=a.islower()

if Flag:

    print('a')

else:

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

if a.isupper():

    print('A')

else:

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

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

-Flag = a.islower() -if Flag: +if a.isupper(): +    print("A") +else: -else: -    print("A")