TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: An uppercase or lowercase English letter \alpha will be given as input. If \alpha is uppercase, print `A`; if it is lowercase, print `a`.

Submission attempts (in order):
α = int(input())
 
if α == α.upper():
  return print('A')
elif α == α.lower():
  return print('a')

def function (x):
  if x == x.upper():
    return "A"
  elif x == x.lower():
    return "a"
  

a = int(input())

if a == a.upper():
  print("A")
elif a == a.lower():
  print("a")


if α==α.upper():
  return "A"
if α==α.lower():
  return "a"


α = int(input())

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


a = int(input())

if a == a.upper():
  return "A"
elif a == a.lower():
  return "a"

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
a = input()

print(a.swapcase())

a = input()
print(a.swapcase())

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

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
C = input()
 
if C.isupper == True:
  ans = "A"
else:
  ans = "a"
  
print(ans)

N = input()

s = "abcdefghijklmnopqrstuvwxyz"
ans = ""
n, m = 0, 0

for i in range(1, 1000):
    m += 26 ** i
    if N <= m:
        n = i
        break

for i in range(n):
    a, b = divmod(N, 26)
    N = a
    if b == 0:
        ans += s[25]
        N -= 1
    else:
        ans += s[b-1]

ans1 = ''.join(list(reversed(ans)))
print(ans1)

C = input()

if C.isupeer == True:
  ans = "A"
else:
  ans = "a"
  
print(ans)

if input().isupeer == True:
  ans = "A"
else:
  ans = "a"
  
print(ans)

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

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

C = input()
 
if C.isupeer:
  print("A")
else:
  print("a")

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

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

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

Submission attempts (in order):
N = int(input())
A = list(map(str,input().split()))
Q = int(input())
b = []
c = []
for i in range(Q):
    B,C = map(str,input().split())
    b.append(B)
    c.append(C)

for i in range(Q):
    if b[i] in A:
        A = [s.replace(b[i],c[i]) for s in A]
    print(sum(int(i) for i in A))

α = str(input())

if α == α.upper():
    print("A")
else:
    print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
from sys import stdin
input = stdin.readline
 
a = input().rstrip()
 
if a.isupper is True:
  print("A")
else:
  print("a")

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
N = int(input())
eList = ['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']
n = N
mod = N
numList = []
 
while n > 0:
  n, mod = divmod(n,26)
  if mod != 0:
    numList.insert(0, mod - 1)
  else:
    numList.insert(0, 25)
    n -= 1
for num in numList:
  ans += eList[num]
print(ans)

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

Verdicts: Runtime Error

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

Submission attempts (in order):
a = input()

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

a = input()

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
if input().isupper == True:
    print("A")
else:
    print("a")


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


Verdicts: Wrong Answer

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

Submission attempts (in order):
a=input()
if a.islower():
    print("a")
else:
    print("b")

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
A = input()

if A.isupper():
    print(A.lower())
else:
    print(A.upper())

A = input()

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
if a.islower():
    answer = a
else:
    answer = a.lower()
print(answer)


a = input().lower()
print(a)


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


Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))
Q = int(input())
for _ in range(Q):
    B,C = map(int, input().split())
A.sort()
ans = 0
for a in range(Q) :
    x=C if A=B else 0
    ans = sum(A)
print(ans)
        

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


Verdicts: Runtime Error

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

Submission attempts (in order):
s = input()
print(ord_s.swapcase)

s = input()

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


Verdicts: Runtime Error

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

Submission attempts (in order):
print("Aa"[isupper(input()[0])])

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

Verdicts: Runtime Error

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

Submission attempts (in order):
alpga = input()
if alpha == isupper():
  print('A')
else:
  print('a')

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

Verdicts: Runtime Error

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

Submission attempts (in order):
a = input()

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

a = input()

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

Verdicts: Runtime Error

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

Submission attempts (in order):
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FileName: 	A
# CreatedDate:  2020-06-21 20:42:18 +0900
# LastModified: 2020-06-21 21:04:18 +0900
#


import os
import sys
#import numpy as np



def main():
    alpha = input()
    if 97 <= ord(alpha) and ord(alpha) <= 97+26:
        print(alpha.upper())
    else:
        print(alpha.lower())


if __name__ == "__main__":
    main()


#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FileName: 	A
# CreatedDate:  2020-06-21 20:42:18 +0900
# LastModified: 2020-06-21 21:07:27 +0900
#


import os
import sys
#import numpy as np



def main():
    alpha = input()
    if alpha.islower():
        print("a")
    else:
        print("A")


if __name__ == "__main__":
    main()


Verdicts: Wrong Answer

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

Submission attempts (in order):
n, k = map(int, input().split())
l = sorted([int(x) for x in input().split()])

print(sum(l[:k]))

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

Verdicts: Runtime Error

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

Submission attempts (in order):
s = input()

print(s.upper() if s.islower() else s.lower())

print("a" if input().islower() else "A")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
if 'a'< a[0] :
    print("A")
else:
    print("a")

a = input()
if 'a'<= a[0] :
    print("A")
else:
    print("a")

a = input()
if 'a'<= a[0] :
    print("a")
else:
    print("A")

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
n=input()
if n.isuper() == true :
  print(n.lower())
else:
  print(n.upper())
	

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

Verdicts: Runtime Error

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

Submission attempts (in order):
a=int(input())

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

Verdicts: Runtime Error

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

Submission attempts (in order):
n,k=map(int,input().split())
a=list(map(int,input().split()))
a.sort()
print(sum(a[:k]))


n,k=map(int,input().split())
a=list(map(int,input().split())
a.sort()
print(sum(a[:k]))

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


Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
a=input()
if a.isupper()=='True':
  print('A')
else:
  print('a')

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

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

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
c = input()
print(c.upper() if c.islower() else c.lower())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()

if a.isupper():
    print(a.lower())
else:
    print(a.upper())

a = input()

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
N = int(input())
ans = ''

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

print(ans[::-1])

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

Verdicts: Runtime Error

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

Submission attempts (in order):
L=set("A","B")
print(L)

L={"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=input()
if a in L:
  print("A")
else:
  print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
X = input()
if X.isupper():
	print('A')
else:

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

Verdicts: Runtime Error

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

Submission attempts (in order):
alpha = input()
print(alpha)
if alpha.islower():
    print('a')
elif alpha.isupper():
    print('A')
else:
    if alpha[0].islower():
        print('a')
    elif alpha[0].isupper():
        print('A')

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

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

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
c=input()
if (c==("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")

c=input()
if c.islower()==False:
    print("A")
else:
    print("a")

Verdicts: Wrong Answer

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

Submission attempts (in order):
x=input()
if x.isupper() is True:
    print(A)
else:
    print(a)


x=input()

if x.isupper() is True:
    print("A")
else:
    print("a")


Verdicts: Runtime Error

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

Submission attempts (in order):
import sys
print("A") if str.isupper(sys.argv[1]) else print("a")

import sys
print("A") if str.isupper(input()) else print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
print("A" if input().islower() else "a")

print("a" if input().islower() else "A")

Verdicts: Wrong Answer

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

Submission attempts (in order):
if input().islower() == "True":
    print("A")
else:
    print("a")

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
print(a.upper() if a.islower() else a.lower())

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

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

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
import string

print(string.ascii_lowercase)
print(string.ascii_uppercase)

n = input()
# print(n)

if n in string.ascii_lowercase:
  print("a")
elif n in string.ascii_uppercase:
  print("A")

import string




n = input()
# print(n)

if n in string.ascii_lowercase:
  print("a")
elif n in string.ascii_uppercase:
  print("A")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()

if a.isUpper():
    print("A")
else:
    print("a")

a = input()

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


Verdicts: Runtime Error

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

Submission attempts (in order):
X=int(input())

if X==X.lower():
    print("a")
else:
    print("A")




X=input()
if X==X.lower():
    print("a")
else:
    print("A")




Verdicts: Runtime Error

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

Submission attempts (in order):
a=str(input())
print(str.lower(a))

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
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))

data = input()

if data.isupper():
    print("A")
elif data.islower():
    print("a")
    

Verdicts: Runtime Error

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

Submission attempts (in order):
n = input()
if n.isupper() == True:
  print(n.lower())
elif n.islower() == True:
  print(n.upper())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input("insert a here")

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

a = input("insert a here")

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

a = input()

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

Verdicts: Wrong Answer

Runtime Error

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

Submission attempts (in order):
print(str.swapcase(input()))

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
N = 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)
print(num2alpha(N).lower())

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

Verdicts: Runtime Error

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

Submission attempts (in order):
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()


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


if __name__ == "__main__":
    main()


Verdicts: Runtime Error

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

Submission attempts (in order):
a = input()
if a.isupper():
  print(a.lower())
else:
  print(a)

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
# -*- coding:utf-8 -*-
s  = input()
print(s.islower())
if s.islower() == True:
    print("a")
else:
    print("A")



# -*- coding:utf-8 -*-
s  = input()
if s.islower() == True:
    print("a")
else:
    print("A")



Verdicts: Wrong Answer

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

Submission attempts (in order):
S = input()
if S.upper():
    print(S.lower())
else:
    print(S.upper())
    
    

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
print(input())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
s = input()
for i in range(65,91):
    s = s.replace(chr(i),"")
    if s:
        print("a")
        exit(0)        
print("A")

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
import sys
input = sys.stdin.readline

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




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()

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()


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()



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




Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
#C
N=int(input())
alp=list(a)
Name=[]
for i in reversed(range(11)):
    if N/(26**i) >=1:
        alp_index=N//(26**i)-1 if N//(26**(i-1))!=26 else 25
        Name.append(alp[alp_index])
    N=N%(26**i)
print(''.join(Name))

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

Verdicts: Runtime Error

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

Submission attempts (in order):
α = input()
if str.isupper():
  print("A")
else:
  print("a")

α = input()
If str.isupper(α) = True :
  print("A")
else :
  print("a") 

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

Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
f=str(input())
if f.islower == True:
  print(a)
else:
  print(A)

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


Verdicts: Runtime Error

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

Submission attempts (in order):
n,k = map(int,input().split())
p = list(map(int,input().split()))
p.sort()
print(sum(p[:k]))

n,k = map(int,input().split())
p = list(int,input())
print(sum(p[:k])


# -*- coding: utf-8 -*-
a = str(input())
 
if a.islower:
  print('a')
elif a.upper:
  print('A')


# -*- coding: utf-8 -*-

a = int(input())

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


# -*- coding: utf-8 -*-
a = str(input())
 
if 'a' <= a <= 'z':
  print('a')
if 'A' <= a <= 'Z':
  print('A')

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Runtime Error

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

Submission attempts (in order):
import re
A= input()
if 'A' in ['a-z']:
    print(a)
else:
    print(A)

import re
B= input()
m = re.match(r"[a-z]", B)
if m:
    print("a")
else:
    print("A")

Verdicts: Wrong Answer

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

Submission attempts (in order):
eList = [chr(i) for i in range(97, 97+26)]
N = int(input())

n = N
mod = N
numList = []

while n > 0:
    n, mod = divmod(n, 26)
    if mod != 0:
        
        
        numList.insert(0, mod - 1)
    else:
        numList.insert(0, 25)
        
        n -= 1

ans = ''
for num in numList:
    ans += eList[num]
print(ans)

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

Verdicts: Runtime Error

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

Submission attempts (in order):
string = input("Enter a letter: ")
if string.isupper() == True:
    print("A")
else:
    print("a")


string = input("Enter a letter: ")
if string.isupper() == True:
    print("A")
else:
    print("a")


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

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
c = input()
if c = c.lower():
  print('a')
else:
  print('A')
    


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

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


Verdicts: Runtime Error

Runtime Error

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

Submission attempts (in order):
a = input(α)
b = a.isupper()
print(b)
if b == True:
    print("A")
else:
    print("a")


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


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


Verdicts: Runtime Error

Wrong Answer

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

Submission attempts (in order):
s = input()
if 65<=ord(s)<=90:
  print(A)
else:
  print(a)

s = input()
if 65<=ord(s)<=90:
  print("A")
else:
  print("a")


Verdicts: Runtime Error

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

Submission attempts (in order):
s = input()
if s.isupper():
    print (s.lower())
else:
    print (s.upper())


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


Verdicts: Wrong Answer

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

Submission attempts (in order):
a,b = map(int,input().split())
mylist = input().split()
mylist.sort()
c = 0
for i in range(b-1):
    c = c + int(mylist[i-1])
print(c)

a = str(input())
b = a.upper()
c = a.lower()
if b == a :
    print("A")
if c == a :
    print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "g\n",
      "a\n"
     ]
    }
   ],
   "source": [
    "A='ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n",
    "a='abcdefghijklmnopqrstuvwxyz'\n",
    "\n",
    "n=input()\n",
    "\n",
    "if n in A:\n",
    "    print(\"A\")\n",
    "\n",
    "if n in a:\n",
    "    print(\"a\")\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}


A='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
a='abcdefghijklmnopqrstuvwxyz'

n=input()

if n in A:
    print("A")

if n in a:
    print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
x = input()

if ord(x) in list(range(65,92)):
  print(x.lower())
else:
  print(x.upper())

x = input()

if ord(x) in list(range(65,92)):
  print('a')
else:
  print('A')

x = input()

if ord(x) in list(range(65,92)):
  print('A')
else:
  print('a')

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
a=input()
if(a.isupper()):
  print(a.lower())
else:
  print(a.upper())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
if a.islower():
    print(a.upper())
else:
    print(a.lower())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
S=str(input())
print("A" if S.islower() else "a")


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


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


Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
A=[ord(i) for i in range(chr(a),chr(z)+1)]
a=input()
if a in A:
  print("a")
else:
  print("A")

A=[chr(i) for i in range(ord("a"),ord("z")+1)]
a=input()
if a in A:
  print("a")
else:
  print("A")


Verdicts: Runtime Error

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

Submission attempts (in order):
a = input()
if a.str.isupper():
  print("A")
else:
  print("a")

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

Verdicts: Runtime Error

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

Submission attempts (in order):
alph = input()
TF = alph.islower()
if TF == true:
  print("a")
else:
  print("A")

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

Verdicts: Runtime Error

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

Submission attempts (in order):
chr = input()

print ord(chr)

chr  = input();
ans = 'A' if ord(chr) >=65 and ord(chr) <= 90 else 'a'
print(ans)

Verdicts: Runtime Error

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

Submission attempts (in order):
N = input()
for i in range(65, 90):
  if i==ord(N):
    A += 1
for i in range(97, 123):
  if i==ord(N):
    a += 1
if A==1:
  print('A')
if a==1:
  print('a')

N = input()
A, a = 0, 0
for i in range(65, 91):
  if i==ord(N):
    A += 1
for i in range(97, 123):
  if i==ord(N):
    a += 1
if A==1:
  print('A')
if a==1:
  print('a')

Verdicts: Runtime Error

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

Submission attempts (in order):
print('a' if input()>'A' else 'A')

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
ans = input().isupper()
print(ans)
if ans == True:
  print("A")
else:
  print("a")

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
n = input()

if n.islower():
  print(n.upper())
else:
  print(n.lower())


n = input()

if n.islower():
  print('a')
else:
  print('A')


Verdicts: Wrong Answer

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

Submission attempts (in order):
print(α)

s = input()
print(s)

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

s = input()
print('s')

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

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
a = input()
if a = a.upper():
  print('A')
else:
  print('a')

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

Verdicts: Runtime Error

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

Submission attempts (in order):
# -*- coding: utf-8 -*-

a = int(input())
print(a)

input = str(input())
check = input.isupper()

if check:
    print('A')
else:
    print('a')

Verdicts: Runtime Error

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

Submission attempts (in order):
s=input()
print(chr(ord(s)+32))


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


Verdicts: Wrong Answer

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

Submission attempts (in order):
c=input()
if(c.isupper()==True):
  	print('A')
else
	print('a')
  

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

Verdicts: Runtime Error

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

Submission attempts (in order):
print(input().lower())

print("a"if input().islower() else "A")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a_list = [chr(ord('a') + i) for i in range(26)]
n = int(input())

l_list = []
ans = ''
while n > 0:
    
    if n % 26 == 0:
        l_list.append(25)
        n = n // 26 - 1
    else:
        l_list.append(n%26)
        n = n // 26
l_list = l_list[::-1]
for i in l_list:
    ans += a_list[i]
print(ans)

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

Verdicts: Runtime Error

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

Submission attempts (in order):
data = input()


if data >= 'a' and data <= 'z':
    data = data.upper()
else:
    data = data.lower()
    
print(data)

n = input()

if n > 'Z':
    print("a")
else:
    print("A")


Verdicts: Wrong Answer

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

Submission attempts (in order):
str = input().strip()
f=str.islower()
if f==True:
    print("a")
else:
    print("A")

print(f)

str = input().strip()
f=str.islower()
if f==True:
    print("a")
else:
    print("A")



Verdicts: Wrong Answer

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

Submission attempts (in order):
alph=input()
if(alpha.isupper()):
  print("A")
else:
  print("a")

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

Verdicts: Runtime Error

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

Submission attempts (in order):
x = intput()
if 'A' <= x <= 'Z':
  print("A")
else:
  print("a")

x = input()
if 'A' <= x <= 'Z':
  print("A")
else:
  print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
print(input().lower())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
a=input()
if a.islower() : print(a.upper())
else : print(a.lower())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
c=input()
if "A"<=c&&c<="Z":
  print("A")
else:
  print("a")

c=input()
if "A" <= c <= "Z":
  print("A")
else:
  print("a")


Verdicts: Runtime Error

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

Submission attempts (in order):
a = input()
print('A' if a.islower() else 'a')

a = input()

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()
al = list("abcdefghijklmnopqrstuvwxyz")
AL = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
if a in al:
    print(str.upper(a))
else:
    print(str.lower(a))


a = input()
al = list("abcdefghijklmnopqrstuvwxyz")
AL = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
if a in al:
    print("a")
else:
    print("A")


Verdicts: Wrong Answer

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

Submission attempts (in order):
N = int(input())
alpha = [-1]
alpha.extend([chr(ord('a') + i) for i in range(26)])
q = N
mod = N
ans = ''
while q >= 27:
    q, mod = divmod(q, 26)
    ans = alpha[mod] + ans
if mod != 0:
    ans = alpha[q] + ans
print(ans)


import re

input_str = input()
if re.match(r'[A-Z]', input_str):
    print('A')
else:
    print('a')

Verdicts: Runtime Error

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

Submission attempts (in order):
a = inputs()
if a.isupper():
  print("A")
else:
  print("a")

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

Verdicts: Runtime Error

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

Submission attempts (in order):
str alpha='B'
if (alpha.isupper()){
  print(A)
}else{
  print(a)
}


alpha='B'
if (alpha.isupper()){
  print(A)
}else{
  print(B)
}

str alpha=input()
if (alpha.isupper()){
  print(A)
}else{
  print(a)
}


alpha='A'
if (alpha.islower){
  print(B)
}else{
  print(A)
}


str alpha=input()
if (alpha.isupper()){
  print(A)
}else{
  print(B)
}


str alpha='B'
if (alpha.isupper()){
  print(A)
}else{
  print(B)
}


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



Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

Submission attempts (in order):
a = input()
print(a.upper() if a.lower() == a else a.lower())

a = input()
print("a" if a.lower() == a else "A")

Verdicts: Wrong Answer

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

Submission attempts (in order):
a = input()

if a.islower():
  print(a)
else:
  print(a.upper())

a = input()

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
s = input()

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


s = input()

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


Verdicts: Wrong Answer

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

Submission attempts (in order):
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')


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

Verdicts: Runtime Error

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

Submission attempts (in order):
a = input()

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

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

Verdicts: Runtime Error

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

Submission attempts (in order):
a = str(input())

if a.islower()==True:
    print(a)
else:
    print(A)

a = str(input())

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

Verdicts: Runtime Error

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

Submission attempts (in order):
alpha = input()

upper = [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]
lower = [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 upper:
    print("A")
else:
    print("a")


alpha = input()

upper = ["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']
lower = ['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 upper:
    print("A")
else:
    print("a")


Verdicts: Runtime Error

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

Submission attempts (in order):
A = input()

B = A.Upper()

if A == B:
    print("A")
else:
    print("a")

A = str(input())

if A == A.upper():
    print("A")
else:
    print("a")

Verdicts: Runtime Error

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

Submission attempts (in order):
X = str(input())

if X.isupper():
    print(X.lower())
else:
    print(X.upper())

X = str(input())

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
n = str(input())
dai = [Q,W,E,R,T,Y,U,I,O,P,A,S,D,F,G,H,J,K,L,Z,X,C,V,B,N,M]
syou = [q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,z,x,c,v,b,n,m]
if n in dai:
  print('A')
else:
  print('a')

n = str(input())
dai = ["Q","W","E","R","T","Y","U","I","O","P","A","S","D","F","G","H","J","K","L","Z","X","C","V","B","N","M"]
syou = ["q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","n","m"]
if n in dai:
  print('A')
else:
  print('a')


Verdicts: Runtime Error

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

Submission attempts (in order):
def main():
    nmax = 100000
    n = int(input())
    values = [0] * nmax
    a = [int(v) for v in input().split()]
    for v in a:
        values[v-1] += 1
    asum = sum(a)

    q = int(input())
    for _ in range(q):
        b, c = [int(v) for v in input().split()]
        asum += values[b-1] * (c - b)
        values[c-1] += values[b-1]
        values[b-1] = 0
        print(asum)

main()

def main():
    c = input()
    if c>='a' and c<='z':
        print('a')
    else:
        print('A')

main()


Verdicts: Runtime Error

Accepted