from sys import stdin

from collections import defaultdict as dd

from collections import deque as dq

import itertools as it

from math import sqrt, log, log2

from fractions import Fraction



# n, k = map(int, input().split())

# nums = list(map(int, stdin.readline().split()))

# nums.sort()

# print(sum(nums[:k]))



n = eval(input())

if n.isupper():

    print('A')

else:

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

if n.isupper():

    print('A')

else:

    print('a')
from sys import stdin
from collections import defaultdict as dd
from collections import deque as dq
import itertools as it
from math import sqrt, log, log2
from fractions import Fraction

# n, k = map(int, input().split())
# nums = list(map(int, stdin.readline().split()))
# nums.sort()
# print(sum(nums[:k]))
n = eval(input())
if n.isupper():
    print("A")
else:
    print("a")

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

-from sys import stdin -from collections import defaultdict as dd -from collections import deque as dq -import itertools as it -from math import sqrt, log, log2 -from fractions import Fraction - -# n, k = map(int, input().split()) -# nums = list(map(int, stdin.readline().split())) -# nums.sort() -# print(sum(nums[:k]))