AtCoder Beginner Contest 171 - αlphabet

An uppercase or lowercase English letter \alpha will be given as input.
If \alpha is uppercase, print A; if it is lowercase, print a.

-----Constraints-----
 - \alpha is an uppercase (A - Z) or lowercase (a - z) English letter.

-----Input-----
Input is given from Standard Input in the following format:
α

-----Output-----
If \alpha is uppercase, print A; if it is lowercase, print a.

-----Sample Input-----
B

-----Sample Output-----
A

B is uppercase, so we should print A.

Source: atcoder | Difficulty: EASY


Solutions:
print('A' if str(input()).isupper() else 'a')


a = input()
print('A' if not a.islower() else 'a')


alp = input()
if alp == alp.upper():
	print('A')
elif alp == alp.lower():
	print('a')


print(chr(65 + 32 * (ord(input()) > 96)))


a = input()
print('a' if a.islower() == True else 'A')


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


print('A' if ord(input()) < 97 else 'a')


print('A' if ord(input()) < 95 else 'a')


S = input()
print('A' if S.isupper() else 'a')


A = input()
print('a' if A > 'Z' else 'A')


print('A' if 65 <= ord(input()) <= 91 else 'a')


x = input()
print('A' if x.upper() == x else 'a')


alpha = input()
print('a' if alpha.islower() else 'A')


s = input()
print('A' if s == s.upper() else 'a')


print('aA'[input().isupper()])


print('a' if ord(input()) > 90 else 'A')


n = input()
s = 'abcdefghijklmnopqrstuvwxyz'
if n in s:
	print('a')
else:
	print('A')


a = input()
b = ord(a)
print('A' if 65 <= b <= 90 else 'a')


x = input()
print('a' if x.islower() else 'A')


p = str(input())
if p.isupper() == True:
	print('A')
else:
	print('a')


x = input()
print('a' if x == x.lower() else 'A')


a = input()
print(['a', 'A'][a.isupper()])


s = input()
if s.lower() == s:
	print('a')
else:
	print('A')


alpha = input()
print('A' if alpha.isupper() else 'a')


S = input()
print('A' if S == S.upper() else 'a')


print('Aa'[input().islower()])


c = input()
print('A' if ord(c) < 96 else 'a')


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


alp = input()
print('A' if alp.isupper() else 'a')


c = input()
print('a' if c.islower() else 'A')


s = input()
print(['A', 'a'][s.lower() == s])


S = input()
print('a' if S.lower() == S else 'A')


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


print(['a', 'A'][65 <= ord(input()) <= 90])


N = input()
print('A' if N.isupper() else 'a')


a = input()
print('aA'[a.upper() == a::2])


ans = 'A' if input() < 'a' else 'a'
print(ans)


a = input().strip()
print('A' if a.isupper() else 'a')


if ord(input()) < 92:
	print('A')
else:
	print('a')


alpha = str(input())
if ord('a') <= ord(alpha) <= ord('z'):
	print('a')
elif ord('A') <= ord(alpha) <= ord('Z'):
	print('A')


α = input()
if α.isupper() == True:
	print('A')
elif α.islower() == True:
	print('a')


alpha = input()
text = 'abcdefghijklmnopqrstuvwxyz'
if alpha in text:
	print('a')
else:
	print('A')


s = input()
if s.islower():
	print('a')
else:
	print('A')


alpha = input()
if alpha.isupper() == True:
	ans = 'A'
else:
	ans = 'a'
print(ans)


if 'a' <= input() <= 'z':
	print('a')
else:
	print('A')


ch = input()
print('A' if ch.isupper() else 'a')


S = input()
print('A' if ord(S) < 96 else 'a')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, bisect
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
import sys
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
mod = 10 ** 9 + 7
stdin = sys.stdin
ni = lambda : int(ns())
nf = lambda : float(ns())
na = lambda : list(map(int, stdin.readline().split()))
nb = lambda : list(map(float, stdin.readline().split()))
ns = lambda : stdin.readline().rstrip()
a = ns()
print('A') if a.isupper() else print('a')


alp = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
a = str(input())
if a in alp:
	print('A')
else:
	print('a')


i = input()
print(['A', 'a'][i == i.lower()])


s = input()
print('a' if ord(s) >= ord('a') else 'A')


Al = input()
if Al.isupper():
	print('A')
else:
	print('a')


inp = input()
print('a' if inp.islower() else 'A')


s = input()
if s.isupper():
	print('A')
else:
	print('a')


n = input()
if n.isupper():
	print('A')
elif n.islower():
	print('a')


temp = input()
if temp.isupper():
	print('A')
else:
	print('a')


import sys
from collections import deque, defaultdict, Counter
from itertools import accumulate, product, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right
from heapq import heappop, heappush
from math import ceil, floor, sqrt, gcd, inf
from copy import deepcopy
import numpy as np
import scipy as sp
INF = inf
MOD = 1000000007
s = input()
tmp = 0
res = 0
if 97 <= ord(s) <= 122:
	res = 'a'
else:
	res = 'A'
print(res)


a = input()
print('aA'[a.isupper()])


a = str(input())
if a.islower():
	print('a')
else:
	print('A')


print('A' if input()[0].isupper() else 'a')


S = input()
print('a' if S.islower() else 'A')


from string import ascii_lowercase
a = input()
if a in ascii_lowercase:
	print('a')
else:
	print('A')


import sys
alpha = input()
text = 'abcdefghijklmnopqrstuvwxyz'
for k in range(26):
	if text[k] == alpha:
		print('a')
		return
	elif k == 25:
		print('A')


C = input()
print('A' if C.isupper() else 'a')


c = input()
print('A' if c.isupper() else 'a')


X = input()
print('A' if X.isupper() else 'a')


print('Aa'[ord(input()) > 96])


n = ord(input())
print('A' if 65 <= n <= 90 else 'a')


S = input()
n = ord(S)
print('A' if n < 97 else 'a')


alp = input()
if alp == alp.upper():
	print('A')
else:
	print('a')


import sys
sys.setrecursionlimit(1000000)
from collections import deque
N = input()
if N.isupper():
	print('A')
else:
	print('a')


import re
a = input()
a = re.match('[a-z]', a)
if a is None:
	print('A')
else:
	print('a')


def main():
	a = input()
	if a == a.upper():
		print('A')
	else:
		print('a')
main()


import sys, os.path
sys.setrecursionlimit(10 ** 5)

def mod():
	return 10 ** 9 + 7

def i():
	return sys.stdin.readline().strip()

def ii():
	return int(sys.stdin.readline())

def li():
	return list(sys.stdin.readline().strip())

def mii():
	return map(int, sys.stdin.readline().split())

def lii():
	return list(map(int, sys.stdin.readline().strip().split()))

def solve():
	a = i()
	if a.isupper():
		print('A')
	else:
		print('a')
for _ in range(1):
	solve()


c = input()
print(['a', 'A'][ord('A') <= ord(c) <= ord('Z')])


m = input()
x = ord(m)
if x >= 97 and x <= 122:
	print('a')
else:
	print('A')


a = input()
if a in list('abcdefghijklmnopqrstuvwxyz'):
	print('a')
	return
else:
	print('A')
	return


a = input()
print('Aa'[a == a.lower()])


char = input()
if char.isupper():
	print('A')
else:
	print('a')


al = input()
print('A' if al.isupper() else 'a')


x = input()
print('A' if ord(x) < ord('a') else 'a')


s = input()
print(['A', 'a'][s.islower()])


import re
n = input()
flag = re.match('[a-z]', n)
print('a') if flag != None else print('A')


print(['A', 'a'][input().islower()])


s = input()
print('a' <= s <= 'z' and 'a' or 'A')


print(['A', 'a'][ord(input()) // 97])


alpha = input()
print('A' if alpha >= 'A' and alpha <= 'Z' else 'a')


print(chr(65 + (input() > 'Z') * 32))


w = input()
print('a' if w.islower() else 'A')


print(('a', 'A')[str(input()).isupper()])


print('Aa'[ord(input()) > 95])


print('aA'[input() < 'a'])


print('aA'[input().isupper()::2])


print(chr(65 + ord(input()) // 97 * 32))


b = input()
le = 'abcdefghijklmnopqrstuvwxyz'
if b in le:
	print('a')
else:
	print('A')


X = input()
if X == X.upper():
	print('A')
else:
	print('a')


g = input()
print('a' if g.lower() == g else 'A')


Q = input()
W = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}
if Q in W:
	print('a')
else:
	print('A')


st = input()
print('a' if st.islower() else 'A')


S = input()
ans = 'A'
if S.islower():
	ans = 'a'
print(ans)


c = input()
print('A' if c != c.lower() else 'a')


j = input()
if 'A' <= j and j <= 'Z':
	print('A')
else:
	print('a')


al = input()
print('a' if al.islower() else 'A')


print(['a', 'A'][ord(input()) < 96])


print('a' if ord(input()) & 32 else 'A')


poe = 'abcdefghijklmnopqrstuvwxyz'
s = input()
if s in poe:
	print('a')
else:
	print('A')