Problem:


Score : 100 points

Problem Statement

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 1

B

Sample Output 1

A

B is uppercase, so we should print A.

Sample Input 2

a

Sample Output 2

a

a is lowercase, so we should print a.



Sample input:
B


Sample output:
A

Submission status: Runtime Error

Solution code:
IN = input()
if str.isupper(IN):
  return "A"
else:
  return "a"

Submission status: Runtime Error

Solution code:
IN = input()
if IN.str.isupper():
  return "A"
else:
  return "a"

Submission status: Runtime Error

Solution code:
IN = input()
if IN.isupper():
  return "A"
else:
  return "a"

Submission status: Runtime Error

Solution code:
a=input("Enter latter:")
if upper(a):
  print("A")
if lower(a):
  print("a")

Submission status: Runtime Error

Solution code:
K = int(raw_input())
S = len(raw_input())

M = 10**9 + 7

F = [1]
IF = [1]
for i in xrange(1, S + K + 1):
    F.append((F[-1] * i) % M)
    IF.append((IF[-1] * pow(i, M - 2, M)) % M)

def nCr(n, r):
    return (F[n] * IF[r] * IF[n-r]) % M

ans = 0
for i in xrange(K + 1):
    ans = (ans + nCr(i + S - 1, S - 1) * pow(25, i, M) * pow(26, K - i, M)) % M
print ans

Submission status: Runtime Error

Solution code:
if input() in 'qwertyuiopasdfghjklzxcvbnm':
  print 'a'
else:
  print 'A'

Submission status: Runtime Error

Solution code:
alpha = str(input())
if str.isupper(alpha) = True:
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
N = int(input())

ans = ""
while N > 0:
  x = (N-1) % 26

  ans = chr(ord('a') + x) + ans
  N = (N-1) // 26

print(ans)

Submission status: Runtime Error

Solution code:
n,k = map(int, input().split())
p = list(map(int, input().split()))
p.sort()
#print(p)
s= sum(p[:k])
print(s)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
ans=''
while n>=26:
    s=n%26
    n=n//26
    ans+=(chr(s+96))
ans+=(chr(n+96))
print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
A=list()
ans=''
while n>=26:
    s=n%26
    n=n//26
    ans+=(chr(s+96))
ans+=(chr(n+96))
print(ans)

Submission status: Runtime Error

Solution code:
mozi=int(input())
ju=mozi.islower()
ju2=mozi.isupper()
if ju==True:
  print("a")
 else:
  print("A")

Submission status: Runtime Error

Solution code:
a = input()
if a.islower():
  print(a)
else:
  print(A)

Submission status: Runtime Error

Solution code:
import sys
print("A") if str.isupper(sys.argv[1]) else print("a")

Submission status: Runtime Error

Solution code:
import sys
import math
import collections

def set_debug(debug_mode=False):
    if debug_mode:
        fin = open('input.txt', 'r')
        sys.stdin = fin


def int_input():
    return list(map(int, input().split()))


if __name__ == '__main__':
    # set_debug(True)

    t = input()
    
    if t.is_upper():
        print('A')
    else:
        print('a')

Submission status: Runtime Error

Solution code:
def main():
    N = int(input())
    ans = ''

    while N > 0:
        N -= 1
        ans += chr(ord('a') + N % 26).lower()
        N = N // 26
    print(ans[::-1])


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
n = "A"
if n.isupper() == True:
    print("A")
p = "a"
if p.islower() == True:
  print("a)

Submission status: Runtime Error

Solution code:
if α.isupper() == True:
    print("A")
else:
    print("a")

Submission status: Runtime Error

Solution code:
a = int(input())

print(a+a**2+a**3)

Submission status: Runtime Error

Solution code:
import numpy as np
k=int(input())
s=input()
ls=len(s)
r1=26**ls
a=np.array([range(k+1,k+ls+1)])
m2= np.prod(a)
a=np.array([range(1,ls+1)])
m3= np.prod(a)
m=m2//m3
#r2=25**ls
r3=26**k
#print(r2)
#print(m2)
print((m*r3)%1000000007)

Submission status: Runtime Error

Solution code:
if input()islower():
    print("a")
else:
    print("A")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
N = int(input())
A = [int(a) for a in input().split()]
Q = int(input())
process = []
proc_append = process.append
for i in range(Q):
	proc_append(tuple(input().split()))
	process[i] = tuple(map(int,process[i]))

A.sort()

for b,c in process:
	if b in set(A):
		for i in range(N):
			if b==A[i]:
				begin = i
				break
		for i in range(begin,N):
			if b!=A[i]:
				end = i-1
				break
			if i==N-1:
				end = i
		for i in range(begin,end+1):
			A[i] = c
	print(sum(A))

Submission status: Runtime Error

Solution code:
a = input()
print(a)

sssss
sssss
sss

print(anser)

Submission status: Runtime Error

Solution code:
a = input()
big = range('A', 'Z')

if big.include(a):
    print 'A'
else:
    print 'a'

Submission status: Runtime Error

Solution code:
x = input()

if 'a' <= x and x <= 'z':
    print('a')
elif
    print('A')

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())

if a.islower:
  print('a')
elif a.upper:
  print('A')

Submission status: Runtime Error

Solution code:
x = input()
if x.isUpper():
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
a = input().isupper()
if ture == a:
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
a = input().isupper
if ture == a:
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
input().isupper
if ture:
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
chr = input()

print ord(chr)

Submission status: Runtime Error

Solution code:
def check(ch): 
  
    if (ch >= 'A' and ch <= 'Z'): 
        print("A"); 
  
    else (ch >= 'a' and ch <= 'z'): 
        print("a");

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=input()
if n.isuper() == true :
  print(n.lower())
else:
  print(n.upper())

Submission status: Runtime Error

Solution code:
a = input()

if(s.islower):
    print("a")
else:
    print("A")

Submission status: Runtime Error

Solution code:
s = input()

if(s.islower):
    print("a")
else:
    print("A"

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
def conv(a): #convert the num to character
  a += 97
  return chr(a)

# 整数の入力
n = int(input())
name = ''

while n>0:
  n -= 1
  name += conv(n%26)
  n //= 26

# 出力
print(name[::-1])

Submission status: Runtime Error

Solution code:
N = int(input())
n = N
alpha = "abcdefghijklmnopqrstuvwxyz"

for i in range(1,12):
    
    if n <= 26 ** i:
        digits = i
        break
    else:
        n -= 26 ** i
#print("桁数は{0}桁".format(digits))
n -= 1
output = ""
for j in range(digits-1):
    amari = n % 26
    n //= 26
    output = alpha[amari] + output
output = alpha[n] + output
print(output)

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main(){
  char c;cin>>c;
  if(65 <= int(c) && int(c) <= 90) cout<<'A'<<endl;
  else cout<<'a'<<endl;
}

Submission status: Runtime Error

Solution code:
n = int(input())
ans = ''
while n > 0:
    n -= 1
    ans += chr(97 + n%26)
    n //= 26
print(ans[::-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a - input()

if a.islower():
    print("a")

else:
    print("A")

Submission status: Runtime Error

Solution code:
if str.isupper(F):
    print("A")
elif str.islower(d):
    print("a")

Submission status: Runtime Error

Solution code:
if α = (A,B,C,) 
	print(A)

Submission status: Runtime Error

Solution code:
N,K=map(int,input().split())
p=list(map(int,input().split()))
p.sort()
m = 0
for i in range(K):
    m += p[i]
    
print(m)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
Q = int(input())
num=[]
for i in range(100000):
    num.append(A.count(i))

total=sum(A)
for i in range(Q):
    B, C = map(int, input().split())
    print(total + (C - B) * num[B])
    total=total + (C - B) * num[B]
    num[C] += num[B]
    num[B] -= num[B]

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
Q = int(input())
num=[]
amax=max(A)
for i in range(amax):
    num.append(A.count(i))

total=sum(A)
for i in range(Q):
    B, C = map(int, input().split())
    print(total + (C - B) * num[B])
    total=total + (C - B) * num[B]
    num[C] += num[B]
    num[B] -= num[B]

Submission status: Runtime Error

Solution code:
a = input()
if a.str.isupper():
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
c = input()
ord_c = ord(c)
if ord_c >= 65 and ord_c <= 90:　#大文字
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
n=int(input())
a=[int(i) for i in input().split()]
x=0
for i in a:
    x^=i

b=[x^i for i in a]
for i in b:
    print(i,end=" ")

Submission status: Runtime Error

Solution code:
char = input()
if(char.isUpper()):
    print("A")
else:
    print("a")

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())

array = list(map(int, input().split()))
array.sort()
total = 0

for i in range(k):
  total+=array[i]
  
print(total)

Submission status: Runtime Error

Solution code:
n=int(input())
if n%10 in (2,4,5,7,9):
    print ('hon')
elif n%10 in (0,1,6,8):
    print ('pon')
else:
    print('bon')

Submission status: Runtime Error

Solution code:
#!/usr/bin/env pypy3
n=int(input())
if n%10 in (2,4,5,7,9):
    print ('hon')
elif n%10 in (0,1,6,8):
    print ('pon')
else:
    print('bon')

Submission status: Runtime Error

Solution code:
s=input()
print("a" if s=s.lower() else "A")

Submission status: Runtime Error

Solution code:
１

Submission status: Runtime Error

Solution code:
n=int(input())
a_list=list(map(int,input().split()))
cnt = [0] * int(1e5 + 10)
sum=0
for i in a_list:
 cnt[i] +=1
 sum+=i
  
q=int(input())
ans=0
 
for j in range(q):
 x,y=map(int,input().split())
 sum+=(y-x)*cnt[x]
 cnt[y]+=cnt[b]
 cnt[x]=0
 print(sum)

Submission status: Runtime Error

Solution code:
n=int(input())
a_list=list(map(int,input().split()))
cnt = [0] * int(1e5 + 10)
sum=0
for i in a_list:
 cnt[i] +=1
 sum+=i
  
q=int(input())
ans=0
 
for j in range(q):
 x,y=map(int,input().split())
 sum+=(y-x)*cnt[x]
 cnt[y]+=cnt[x]
 cnt[y]=0
 print(sum)

Submission status: Runtime Error

Solution code:
n=int(input())
a_list=list(map(int,input().split()))
cnt = [0] * int(1e5 + 10)
sum=0
for i in a_list:
 cnt[i] +=1
 sum+=i
  
q=int(input())
ans=0
 
for j in range(q):
 x,y=map(int,input().split())
 sum+=(y-x)*cnt[x]
 print(sum)
 cnt[x]+=cnt[y]
 cnt[y]=0

Submission status: Runtime Error

Solution code:
n=int(input())
a_list=list(map(int,input().split()))
cnt = [0] * int(1e5 + 10)
sum=0
for i in a_list:
 cnt[i] +=1
 sum+=i
q=int(input())
ans=0
 
for j in range(q):
 x,y=map(int,input().split())
 sum+=(x-y)*cnt[x]
 print(sum)
 cnt[x]+=cnt[y]

Submission status: Runtime Error

Solution code:
s = input()
x = ord(s[0])
if x>=65 and x<=90:
  print("A")
else if x>=97 and x<=122:
  print("a")

Submission status: Runtime Error

Solution code:
s=input()
if s.lowercase():
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
import re
n=int(input())
s=[]
s=input().split()
q=int(input())

for i in range(q):
 x,y=map(str, input().split())
 s.replace(x,y)
 
for j in range(q):
 ans+=int(s[j])
 
print(ans)

Submission status: Runtime Error

Solution code:
a=input()
if ord(a)<ord('a'):
  print(A)
else:
  print(a)

Submission status: Runtime Error

Solution code:
N = input()
if(N.lower() = N):
  print("a")
else:
  print("A")

Submission status: Runtime Error

Solution code:
from collections import defaultdict
from heapq import heappush, heappop
import sys


def main(K, N):
    P = 10 ** 9 + 7

    P25 = [1] * (K + 1)
    P26 = [1] * (K + 1)
    F = [1] * (N + K)
    INV = [1] * (N + K)
    INVF = [1] * (N + K)

    p25 = 1
    p26 = 1
    for i in range(1, K + 1):
        p25 *= 25
        p25 %= P
        P25[i] = p25

        p26 *= 26
        p26 %= P
        P26[i] = p26

    f = 1
    invf = 1
    for i in range(2, N + K):
        f *= i
        f %= P
        F[i] = f
        q, r = divmod(P, i)
        INV[i] = -INV[r] * q % P
        invf *= INV[i]
        invf %= P
        INVF[i] = invf

    def comb_rep(n, r):
        return (F[n + r - 1] * INVF[r] % P) * INVF[n - 1] % P

    ret = 0
    for i in range(K + 1):
        ret += (
            P25[i] *
            P26[K - i] % P *
            comb_rep(N, i) % P
        )
    return (ret % P)


if sys.argv[-1] == 'ONLINE_JUDGE':
    print("compiling")
    from numba.pycc import CC
    cc = CC('my_module')
    cc.export('main', 'i8(i8,i8)')(main)
    cc.compile()
    exit()
else:
    from my_module import main
    K = int(input())
    S = input()
    print(main(K, len(S)))

Submission status: Runtime Error

Solution code:
alph=input()
if(alpha.isupper()):
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
# a(1)〜z(26)を使った26進数に変換する

import string

N = int(input())
alpha = list(string.ascii_lowercase)
alpha.append('')

# valueに答えとなるalphabetの羅列を入れる
value = []
value.append(alpha[N // (26**10) - 1])

for i in range(10,1,-1):
  value.append(alpha[(N % (26**i)) // (26**(i-1)) - 1])

value.append(alpha[N % (26**1) - 1])

value = ''.join(value)
print(value)

Submission status: Runtime Error

Solution code:
print("A" if input().ispper() else "a")

Submission status: Runtime Error

Solution code:
print("A" if input().ispper（） else "a")

Submission status: Runtime Error

Solution code:
print("A" if input().ispper else "a")

Submission status: Runtime Error

Solution code:
import sys
 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
 
N = read().rstrip().decode()

if N isupper():
	print('A')
else:
	print('a')

Submission status: Runtime Error

Solution code:
import sys
 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
 
N = read().rstrip().decode()

if N is.upper():
	print('A')
else:
	print('a')

Submission status: Runtime Error

Solution code:
import sys
 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
 
N = read().rstrip().decode()

if N is.upper():
	print('A')
else:
	print('a')

Submission status: Runtime Error

Solution code:
lpha=input()
cap=['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(alpha in cap):
    print('A')
else:
    print('a')

Submission status: Runtime Error

Solution code:
a = str(input())

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

Submission status: Runtime Error

Solution code:
import sys

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

def main():
    K = int(input())
    S = input()

    mod = 10 ** 9 + 7
    n = len(S)
    ans = 0

    fact =[1]*(K+n)
    factinv = [1]*(K+n)


    for i in range(2,K+n):
        fact[i] = (fact[i-1] * i) % mod
        factinv[i] = pow(fact[i],mod-2,mod)

    def nCr(n,r):
        return (fact[n] * factinv[r] * factinv[n-r]) % mod

    for i in range(K+1):
        #ans += ((25 ** i * nCr(i+n-1,n-1)) * (26 ** (K - i))) % mod
        ans += ((25 ** i * fact[i+n-1] * factinv[n-1] * factinv[i] ) * (26 ** (K - i))) % mod
    print(ans)

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
N = int(input())
An = list(map(int, input().split()))
Q = int(input())


for i in range(Q):
    b, c = map(int, input().split())
    for j, name in enumerate(An):
        if An[j] == b:
            An[j] = c
    
    print(sum(An))

Submission status: Runtime Error

Solution code:
N = int(input())
An = list(map(int, input().split()))
Q = int(input())

bc = [map(int, input().split()) for _ in range(Q)]
b, c = [list(i) for i in zip(*bc)]

for i in range(Q):
    for j, name in enumerate(An):
        if An[j] == b[i]:
            An[j] = c[i]
    
    print(sum(An))

Submission status: Runtime Error

Solution code:
s=raw_input()
if s.islower():
    print('a')
else:
    print("A")

Submission status: Runtime Error

Solution code:
c = input()

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

Submission status: Runtime Error

Solution code:
n = int(input())
A = list(map(int, input().split()))
num = [0] * (10 ** 5)

for a in A:
    num[a] += 1
_sum = sum(A)

result = []
q = int(input())
for i in range(q):
    b, c = list(map(int, input().split()))
    _sum += (c - b) * num[b]
    num[c] += num[b]
    num[b] = 0
    result.append(str(_sum))
print('\n'.join(result))

Submission status: Runtime Error

Solution code:
a=int(input())

print('A' if(a.isupper) else 'a')

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
Q = int(input())
B = [list(map(int,input().split())) for _ in range(Q)]
numList = [0]*10**5
sum=0
for i in A:
    numList[i] += 1
    sum+=i



for i in range(Q):
    dev = B[i][1]-B[i][0]
    sum += numList[B[i][0]]*dev
    numList[B[i][1]] +=numList[B[i][0]]
    numList[B[i][0]] = 0
    print(sum)

Submission status: Runtime Error

Solution code:
import re
import sys

def main():
    args = sys.argv
    alpha = args[1]

    if(re.compile("[A-Z]").search(alpha)):
        print("A")
    else:
        print("a")



if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
input().islower(): print("a")
else: print("A")

Submission status: Runtime Error

Solution code:
if input().islower():
	return 'a'
 else:
  	return 'A'

Submission status: Runtime Error

Solution code:
x = input()
if X.isupper():
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
val = input()
if val in 'abcdefghijklmnopqrstuvwxyz':
  ans = a
else
  ans = A
  
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
q = int(input())
x = [0] * 100001
ans = sum(a)

for ai in a:
    x[ai] += 1  # xのなかでaiが登場する個数のカウント

for _ in range(q):
    b, c = map(int, input().split())
    ans += (c-b) * x[b]
    x[c] += x[b]  # bをcに入れ替えた個数だけcが増加する
    x[b] = 0
    print(ans)

# for i in range(q):
#     count = 0
#     b, c = map(int, input().split())
#
#     for j in a:
#         if j == b:
#             a[count] = c
#         count += 1
#     a_list = [_ for _ in a]
#     ans.append(a_list)
#
# for answer in ans:
#     print(sum(answer))

Submission status: Runtime Error

Solution code:
s = input()

#s.isupper()==True if print("A") else print("a")
print('A' if a.islower() else 'a')

Submission status: Runtime Error

Solution code:
print(α)

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
#define ll long long
#define vi vector<int>
#define pii pair<int,int>
#define F first
#define S second
#define pb push_back
#define forn(b) for(int i = 0; i < b; i++)
#define rforn(b) for(int i = b - 1 ;i >= 0; i--)
#define It(m) for(auto it = m.begin(); it != m.end(); it++)
#define N 500500
#define PI 3.14159265358979323846264338327950L
#define speed ios_base :: sync_with_stdio(0);cin.tie(0);cout.tie(0);
    
const ll mod = (ll)1e9 + 7;
    
int main(){
    speed;
    char c; cin >> c;
    if(c >= 'a' && c <= 'z') cout << 'a';
    else cout << 'A';   
    return 0;
}

Submission status: Runtime Error

Solution code:
letter = input()
  
if letter.isUpper()==True:
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
a=input（）
if a.isupper():
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
a=input（）
if a.isuppder():
  print('A')
else:
  print('a')

Submission status: Runtime Error

Solution code:
M = int(input())
if M == M.upper():
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
alfa = input()

if alfa.islower():
    print(a)
else:
    print(A)

Submission status: Runtime Error

Solution code:
import re
if len(re.finall('[A-Z]', input()) == 0:
       print('a')
else:
       print('A')

Submission status: Runtime Error

Solution code:
x = input()

if x.islower():
	an = x.upper()
else:
    an = x.lower()

 print(an)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
# スペース区切りの整数の入力
b, c = map(int, input().split())
# 文字列の入力
s = input()
# 出力
print("{} {}".format(a+b+c, s))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
print(a)

Submission status: Runtime Error

Solution code:
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#define STR 10
int main(){
    char a;
    scanf("%c",&a);
    if(isupper(a)==0){
        printf("a");
    }else{
        printf("A");
    }
    return 0;
}

Submission status: Runtime Error

Solution code:
in = input()

if in.isupper():
  print("A")
else:
  print("a")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
c = input()
if c>=A and c<=Z:
    print('A')
else:
    print('a')

Submission status: Runtime Error

Solution code:
>>>print('a')
a

Submission status: Runtime Error

Solution code:
>>>print(''a'')
'a'

Submission status: Runtime Error

Solution code:
>>>print('a')
'a'

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int, input().split()))
L=[0]*(100001)
#何回その数字が出てきたかのリスト
ans=0
for a in A:
  L[a]+=1
  #aが出てきた数（2回出てきたら2になる）
  ans=sum(A)
Q=int(input())
for i in range(Q):
  B,C=map(int, input().split())
  #Bの数だけ（C-B)足す、BはCに置き換わるのでLB＝０になおす。
  key=L[B]
  L[C]+=key
  ans+=key*(C-B)
  L[B]=0
  print(ans)

Submission status: Runtime Error

Solution code:
c = input()
print('A' if ord('A') <= ord(A) <= ord('Z') else 'a')

Submission status: Runtime Error

Solution code:
2
1 2
3
1 100
2 100
100 1000

Submission status: Runtime Error

Solution code:
x=input()
if x.isupper() is True:
    print(A)
else:
    print(a)

Submission status: Runtime Error

Solution code:
a=input()
if a==a.upeer():
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
N = int(input())
ans = ''

while N > 0:
    N -= 1
    ans += chr(ord('a') + N % 26)
    N //= 26

print(ans[::-1])

Submission status: Runtime Error

Solution code:
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define inf 1001001001
#define mod 1000000007
#define mod2 998244353
#define pi acos(-1)
#define aint(x) (x).begin(),(x).end()
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << setprecision(15) << fixed;

  char c;
  cin >> c;
  cout << (islower(c) ? 'a' : 'A') << endl;
  
}

Submission status: Runtime Error

Solution code:
n=int(input())
l=list(map(int,input().split()))
q=int(input())
before=[]
after=[]
for i in range(q):
    a,b=input().split()
    before.append(int(a))
    after.append(int(b))
    
for i in range(q):
  if before[i] in l:
    l=[after[i] if j == before[i] else j for j in l]
  print(sum(l))

Submission status: Runtime Error

Solution code:
a = str.input()
if a.isupper:
  print("A")
else:
  print("a")

Submission status: Runtime Error

Solution code:
N=int(input())
ans=''
whileN>0:
  N-=15
  ans+=chr(ord('a')+N%26)
  N//=26
print(ans[::-1])

Submission status: Runtime Error

Solution code:
n = int(input())

x = n 
nums = []
ans = ''
for i in range(1, 11):
    if 26**i >= n:
        for _ in range(i):
            print(x, x%26)
            x -= 1
            l = x % 26
            x //=  26
            nums.append(l)
        break
    else:
        n -= 26**i
        
for _ in nums:
    ans +=(chr(ord('a') + _))
    
print(ans[::-1])

Submission status: Runtime Error

Solution code:
name = []
N = int(input())

while  N  > 0:
    N, mod = divmod(N, 26)
    name.insert(0,chr(96+mod))
name=''.join(name)
print(name)

Submission status: Runtime Error

Solution code:
N = int(input())
ans = ''
for i in range(1, 99):
 	if N <= 26 ** i:
 		N -= 1
 		for j in range(i):
 			ans += chr(ord('a') + N % 26)
 			N //= 26
 		break
	else:
 		N -= 26 ** i
print(ans[::-1])

Submission status: Runtime Error

Solution code:
N = int(input())
2 ans = ''
3 for i in range(1, 99):
4 	if N <= 26 ** i:
5 		N -= 1
6 		for j in range(i):
7 		ans += chr(ord('a') + N % 26)
8 		N //= 26
9 	break
10	else:
11		N -= 26 ** i
12 print(ans[::-1])

Submission status: Runtime Error

Solution code:
s=input()
if s.isUpper() :
  print(s.toLower())
else:
  print(s.toUpper())

Submission status: Runtime Error

Solution code:
print(“aA”[input().isupper()])

Submission status: Runtime Error

Solution code:
n, k = [int(j) for j in input().split(' ')]
p = input().split(' ')
 
p.sort()
sum = 0
 
for i in range(0,k):
  sum+=int(p[i])
  
return sum

Submission status: Runtime Error

Solution code:
n=int(input())
s=""
while n>0:n-=1;s+=chr(97+n%26);n//=26
print(s[::-1])

Submission status: Runtime Error

Solution code:
N = int(input())
alpha = ['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']
ans = ''

while N > 0:
    N-=1
    index = N%26
    ans = alpha[index] + ans
    N = N // 26
print(ans)

Submission status: Runtime Error

Solution code:
a=input()
if "a"<=ord(a) and ord(a)<="z":print("a")
else:print("A")

Submission status: Runtime Error

Solution code:
# 371 ms, 27032 KB
n = int(input())
a = list(map(int, input().split()))
q = int(input())
b = []
c = []
 
bc = [map(int, input().split()) for _ in range(q)]
b, c = [list(i) for i in zip(*bc)]
 
dic = {}
for aa in a:
    dic[aa] = dic.get(aa, 0) + 1
 
s = sum(a)
for i in range(q):
    if b[i] not in dic:
        print (str(s))
        continue
    s += (c[i]-b[i]) * dic[b[i]]
    dic[c[i]] = dic.get(c[i], 0) + dic[b[i]]
    del dic[b[i]]
    print(s)

Submission status: Runtime Error

Solution code:
import bisect

N = int(input())
A = list(map(int,input().split()))

Q = int(input())

A.sort()
B = list(set(A))
X = [[0 for j in range(2)] for i in range(len(B))]
for i in range(len(B)):
  b=bisect.bisect_left(A,B[i])
  c=bisect.bisect_right(A,B[i])
  num = c - b #B[i]の要素数
  X[i][0] = B[i]
  X[i][1] = num

M = [0 for j in range(Q)]
N = [0 for j in range(Q)]
for i in range(Q):
  M[i],N[i] = map(int,input().split())
B_len = len(B)
ans = int()
for i in range(Q):
  x = M[i]
  y = N[i]
  ans = 0
  jg = False
  for j in range(B_len):
    if X[j][0] == y:
      jg = True
      jgx = j
  for j in range(B_len):
    if X[j][0] == x:
      X[j][0] = y
      if jg == True:
        X[j][1] += X[jgx][1]
        X[jgx][0] = 0
        B_len = B_len-1
    ans += X[j][0] * X[j][1]
  print(ans)
  #print(X)

Submission status: Runtime Error

Solution code:
import bisect

N = int(input())
A = list(map(int,input().split()))

Q = int(input())

A.sort()
B = list(set(A))
X = [[0 for j in range(2)] for i in range(len(B))]
for i in range(len(B)):
  b=bisect.bisect_left(A,B[i])
  c=bisect.bisect_right(A,B[i])
  num = c - b #B[i]の要素数
  X[i][0] = B[i]
  X[i][1] = num

M = [0 for j in range(Q)]
N = [0 for j in range(Q)]
for i in range(Q):
  M[i],N[i] = map(int,input().split())

ans = int()
for i in range(Q):
  x = M[i]
  y = N[i]
  ans = 0
  jg = False
  for j in range(len(B)):
    if X[j][0] == y:
      jg = True
      jgx = j
  for j in range(len(B)):
    if X[j][0] == x:
      X[j][0] = y
      if jg == True:
        X[j][1] += X[jgx][1]
        X[jgx][0] = 0
    ans += X[j][0] * X[j][1]
  print(ans)
  #print(X)

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
a = np.fromstring(input(), sep=" ", dtype=np.int64)
b = np.bitwise_xor.reduce(a)
c = np.bitwise_xor(a, b)
print(*c, sep=" ")

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
a = np.fromstring(input(), sep=" ", dtype=np.int64)
b = np.bitwise_xor.reduce(a)
c = np.bitwise_xor(a, 0)
print(*c, sep=" ")

Submission status: Runtime Error

Solution code:
n = int(input())

ans = ''

while n > 0:
    n -= 1
    ans += chr(ord('a') + n % 26)
    n //= 26

print(ans[::-1])

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline

def main():
    n = input()
    a =ord(n)
    if a>96:
        print("a")
    else:
        print("A")

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
import string
alphabets = "abcdefghijklmnopqrstuvwxyz"
n = 26

ans = ''
tmp = int(input())
while tmp > 0:
    tmp -= 1
    idx = tmp % n
    ans = alphabets[idx] + ans
    tmp //= n
print(ans)

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**5)

def main():
    n = input()
    a =ord(n)
    if a>96:
        print("a")
    else:
        print("A")

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
a = np.fromstring(input(), sep=" ", dtype=np.int64)
# b = np.bitwise_xor.reduce(a)
c = np.bitwise_xor(a, 0)
print(*c, sep=" ")

# for n in range(N):
#     print(np.bitwise_xor.reduce(a) ^ a[n])

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
a = np.fromstring(input(), sep=" ", dtype=np.int64)
b = np.bitwise_xor.reduce(a)
# c = np.bitwise_xor(a, b)
# print(*c, sep=" ")

# for n in range(N):
#     print(np.bitwise_xor.reduce(a) ^ a[n])

Submission status: Runtime Error

Solution code:
while True:
	D=input()
	if str.isupper(D):
		print("A")
	else:
		print("a")

Submission status: Runtime Error

Solution code:
a = input().strip()
if a <= z:
  print('a')
else:
  print('A')

Submission status: Runtime Error

Solution code:
D=input()
	if D.isupper():
		print("A")
	else:
		print("a")

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:
#5問目
N = int(input())
a = list(map(int, input().split()))
#XORはpythonでは^で表現
temp = 0
result = []
for i in range(N):
    for j in range(len(a)):
        if j != i:
            temp = temp ^ a[j]
    result.append(temp)
    temp = 0
print(''.join(result))

Submission status: Runtime Error

Solution code:
num=int(input())


def num2alpha(num):
    if num<=26:
        return chr(64+num)
    elif num%26==0:
        return num2alpha(num//26-1)+chr(90)
    else:
        return num2alpha(num//26)+chr(64+num%26)

ans=num2alpha(num).lower()

print(ans)