strr = eval(input())



if strr == "A" or strr =="B" or strr == "C" or strr == "D" or strr =="E" or strr =="F" or strr =="G" or strr =="H" or strr =="I" or strr =="J" or strr =="K" or strr =="L" or strr =="N" or strr =="M" or strr =="O" or strr =="P" or strr =="Q" or strr =="R" or strr =="S" or strr =="T" or strr =="U" or strr =="V" or strr =="W" or strr =="X" or strr =="Y" or strr =="Z":

    print("A")

else:

    print("a")
a =eval(input())



if a.isupper() == True:

    print("A")

else:

    print("a")
strr = eval(input())
if (
    strr == "A"
    or strr == "B"
    or strr == "C"
    or strr == "D"
    or strr == "E"
    or strr == "F"
    or strr == "G"
    or strr == "H"
    or strr == "I"
    or strr == "J"
    or strr == "K"
    or strr == "L"
    or strr == "N"
    or strr == "M"
    or strr == "O"
    or strr == "P"
    or strr == "Q"
    or strr == "R"
    or strr == "S"
    or strr == "T"
    or strr == "U"
    or strr == "V"
    or strr == "W"
    or strr == "X"
    or strr == "Y"
    or strr == "Z"
):
    print("A")
else:
    print("a")

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

-strr = eval(input()) -if ( -    strr == "A" -    or strr == "B" -    or strr == "C" -    or strr == "D" -    or strr == "E" -    or strr == "F" -    or strr == "G" -    or strr == "H" -    or strr == "I" -    or strr == "J" -    or strr == "K" -    or strr == "L" -    or strr == "N" -    or strr == "M" -    or strr == "O" -    or strr == "P" -    or strr == "Q" -    or strr == "R" -    or strr == "S" -    or strr == "T" -    or strr == "U" -    or strr == "V" -    or strr == "W" -    or strr == "X" -    or strr == "Y" -    or strr == "Z" -): +a = eval(input()) +if a.isupper() == True: