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):
word=input()
if word.islower:
  print("a")
else:
  print("A")

word=input()
if word.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()

print('A' if a == 'A' else 'a')

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  

for _ in range(q):
    b, c = map(int, input().split())
    ans += (c-b) * x[b]
    x[c] += x[b]  
    x[b] = 0
    print(ans)


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


a = input()
print('A' if a.isupper() else '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):
if __name__ == "__main__":
  N = int(input())
  A = [int(x) for x in input().split()]
  Q = int(input())
  for i in range(Q):
    A.sort()
    B, C = [int(x) for x in input().split()]
    A = [x if x!=B else C for x in A]
    print(sum(A))

x = str(input())
if(x.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 func(x):
  if ord(x) - ord('a') >= 0:
    print('a')
  else:
    print('A')


def main():
  letter = raw_input()
  func(letter)
  # for x in ['A', 'Z', 'a', 'z']:
  #   func(x)


if __name__ == '__main__':
  main()

def func(x):
  if ord(x) - ord('a') >= 0:
    print('a')
  else:
    print('A')


def main():
  letter = input()
  func(letter)
  # for x in ['A', 'Z', 'a', 'z']:
  #   func(x)


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):
x=int(input())
i=0
kekka1=[[0] for _ in range(10)]
while x>0:
    kekka1[i]=x%2
    x=x//2
    i+=1

for k in range(10):
    j=9-k
    if kekka1[j]==1:
        print(str(j)+"番の分銅を右の皿に載せる。")

x=int(input())
i=0
kekka1=[[0] for _ in range(10)]
while x>0:
    kekka1[i]=x%2
    x=x//2
    i+=1

for j in range(10):
    if kekka1[9-j]==1:
        print(str(9-j)+"番の分銅を右の皿に載せる。")



a=input()
s=list("abcdefghijklmnopqrstuvwxyz")
if a in s:
    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):
x = input()

if x in [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]:
  print('a')
else:
  print('A')

x = input()

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

x = input()
if x.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 = int(input())
if 0 <= ord(a) - ord('a') <= 26:
  return 'a'
if 0 <= ord(a) - ord('A') <= 26:
  return 'A'

a = input()
if 0 <= ord(a) - ord('a') <= 26:
  return 'a'
if 0 <= ord(a) - ord('A') <= 26:
  return 'A'

a = input()
if a.islower():
  print('a')
if a.isupper():
  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 str.isupper(a):
  a = str.lower(a)
else:
  a = str.upper(a)
print(a)

a = input()
if str.isupper(a):
  a = 'A'
else:
  a = 'a'
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):
ch = input()
if(ch>='A' && ch <='Z'):
  print('A')
 else:
  print('a')

ch = input()
if(ch>='A' and ch <='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):
str=str(input())
if str.isupper():
	print("A")
else
	print("a")

str=str(input())
if str.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(input().swapcase())

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 = str(input())
print(a.lower())

a = str(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:
  x = (N-1) % 26

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

print(ans)


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

a = input()
print('A' if a.isupper() else '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):
n=input()

b=n.upper()
print(b)


n=input()

if n.isupper()==True:
    print("A")

if 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()
if a.islower:
    print('a')
else:
    print('A')

i = input()

if i.islower() is 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):
_in = input()

result = _in.isupper()

if result ? :
  print('A')
else:
  print('a')
  

_in = input()

result = _in.isupper()

if result:
  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 = int(input())
a = [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 a:
  print('A')
else:
  prnt('a')

alpha = int(input())
a = [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 a:
  print('A')
else:
  print('a')

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

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

Verdicts: 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):
num = int(input())
strng = ""
while num >= 1 :
    kalan = num % 26
    if(kalan==0):
      strng = "z" +strng
    else:
    	strng = chr(96+kalan)+strng
    num = num // 26
print(strng)

num = int(input())
strng = ""
while num >= 1 :
    kalan = num % 26
    strng = chr(97+kalan-1)+strng
    num = num // 26
print(strng)

import re
txt=input()
x = re.search("[A-Z]", txt)
if(x):
  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):
N = int(input())
M = 'abcdefghijklmnopqrstuvwxyz'
L = []
res = ''

while(N>=26):
    N -= 1
    m = N % 26
    N = N // 26
    L = [m] + L

L = [N-1] + L

for m in L:
    res += M[m]
print(res)

import re

t = input()

pattern = r'[a-z]'

repattern = re.compile(pattern)

result = repattern.match(t)

if result:
    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(ord(input()) & 32)

print('a' if ord(input()) & 32 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):
x=input()
y='x'.isupper()
if y=='true':
  print('A')
else:
  print('a')

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


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


mozi=input()

if mozi.isupper() is True:
  print('A')
else:
  print('a')


Verdicts: 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):

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

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

D=input()
if str.isupper(D):
	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):
c = input()

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

c = input()

print('a' if c.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):
dic = ["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"]
s = input()
if s in dic:
  print(s.upper())
else:
  print(s.lower())

dic = ["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"]
s = input()
if s in dic:
  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 = str(input())

if a.islower == True:
    print("a")
elif a.islower == False:
    print("A")

str = input()

if str.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 c>='a' and c<='z':
	print('A')
else:
	print('a')

c = input()

if c>='a' and c<='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):
s=raw_input()
if s.islower():
    print('a')
else:
    print("A")





s=input()
if s.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):
n = input()

s = "abcdefghijklmnopqrstuvwxyz"

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

n = input()
 
s = "abcdefghijklmnopqrstuvwxyz"
 
if n in 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):
a = input()
s = int(ord(a)

if  65<=s and s<=90:
 print("A")
elif 97<=s and s<=122:
 print("B")

a = input()

s=int(ord(a))

if  65<=s and s<=90:
 print("A")
elif 97<=s and s<=122:
 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 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 
  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)
  



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



x = str(input())
if x.isupper() == True:
  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):
x = str(input())
if x.isupper() == Ture:
  print("A")
else:
  print("a")

x = str(input())

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

x = input()

if str(x).isupper() == True:
  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):
N = input()

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

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

if input().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):

import math

for i in range(1):
    s=input()
    print(s.lower())
        
        
        
    
    
    



import math

for i in range(1):
    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):
def main():
  S=input()
  if ord(S)<=65:
  	print("A")
  else:
    print("a")

main()

def main():
  S=input()
  if ord(S)<=65:
  	print(chr(ord(S)+32))
  else:
    print(chr(ord(S)-32))

main()

def main():
  S=input()
  if ord(S)<=65:
  	print(chr(ord(S)+32))
  else:
    print(chr(ord(S)-32))

main()

def main():
  S=input()
  if 65<= ord(S) and ord(S)<97 :
  	print("A")
  elif 97<= ord(S) and ord(S)<123:
    print("a")

main()

Verdicts: 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")


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=" ")


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


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=" ")


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=" ")


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


import numpy as np

N = int(input())
a = np.fromstring(input(), sep=" ", dtype=np.int64)
b = np.bitwise_xor.reduce(a)
for n in range(N):
    print(b ^ a[n])


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


Verdicts: Wrong Answer

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):
ch = input(str)

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

    

ch = input()

if ch.isupper() :
    print("A")
elif ch.islower():
    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 = str(input())

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

a = str(input())
 
if a == a.upper():
  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 = str(input())

if c.lowercase():
  print 'a'
else:
  print 'A'

c = str(input())

if c.lowercase():
  print('a')
  else:
    print('A')

c = str(input())

if c.islower():
    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):
ch = input()
if ch == a or ch == b or ch == c or ch == d or ch == e or ch == f or ch == g or ch == h:
  print(a)
elif ch == i or ch == j or ch == k or ch == l or ch == m or ch == n or ch == o:
  print(a)
elif ch == p or ch == q or ch == r or ch == s or ch == t or ch == u or ch == v:
  print(a)
elif ch == w or ch == x or ch == y or ch == z:
  print(a)
else
 print(b)

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):
# -*- coding: utf-8 -*-

a = int(input())

b, c = map(int, input().split())

s = input()

print("{} {}".format(a+b+c, s))

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):
a = input('')
l = a.upper()
u = a.lower()
print(l if a==u else u)

a = input('')
l = a.upper()
u = a.lower()
print('a' if a==u 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):
from sys import stdin

str = stdin.readline().rstrip()

if str.islower():
    print('a')
else:
    print('A'from sys import stdin

str = stdin.readline().rstrip()

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

import sys
from sys import stdin

str = sys.stdin.readline()

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):
import sys
input = sys.stdin.readline

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

import sys
input = sys.stdin.readline

x = input()
print('A' if x.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):
a = input()

if a.lower() == a:
  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):
s = input()
flag = s.isupper()
print(s.lower()) if flag == True else print(s.upper())

s = input()
flag = s.isupper()
print("A") if flag == True 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 (ord(s) >=97 and ord(s)<=122):
	print(chr(65 + ord(s) - 97))
else:
	print(chr(97 + ord(s) - 65))

s = input()
if (ord(s) >=97 and ord(s)<=122):
	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 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)

s=input()
if s in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
  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()
if alpha.isupper():
  output = A
else:
  output = a

print(output)


alpha = input()
if alpha.isupper():
  output = A
else:
  ourput = a

print(output)


alpha = input()
if alpha.isupper():
  alpha.lower()
else:
  alpha.upper()

print(alpha)

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

print(output)


Verdicts: Runtime Error

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):
#abc171a
c=input()
if c.islower():
 print('A')
else:
 print('a')


#abc171a
c=input()
if c.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):
b = input()
print('A' if b.islower() else 'a')

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

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

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

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

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

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

Verdicts: Wrong Answer

Runtime Error

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):
import re

a = input()

small = r'[a-z]'
big = r'[A-Z]'

if a == small:
  print('a')
elif a == big:
  print('A')

n = int(input())
n -= 1

alphabet = ['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']

first = n // len(alphabet)
mod = n % len(alphabet) 

if n < 26:
    print(alphabet[mod])
    
    
elif n >= 26 and n <702:
    print(alphabet[first-1]+alphabet[mod])
    
elif n >= 702 and n <18278:
    second = (first // len(alphabet)) -1
    second_1 = second % len(alphabet)
    print(alphabet[second_1-1]+alphabet[second-1]+alphabet[mod])
    
elif n >= 18278 and n <475254:
    second = (first // len(alphabet)) -1
    second_1 = second % len(alphabet)
    
    third = (second // len(alphabet)) -1 
    third_1 = third % len(alphabet)
    print(alphabet[second_1-1]+alphabet[second-1]+alphabet[mod]+alphabet[mod])
    
elif n >= 475254 and n <1000000000000001:
    print('')

a = input()

if a.isupper() == True:
  print('A')
elif a.islower() == True:
  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):
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)


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):
N=input()
print(str.lower(N))

N=input()
if N.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, K = map(int, input().split())
         
P = list(map(int, input().split()))

P.sort()

ans = 0
for i in range(K):
    ans += P[i]
    
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):
if(input().isupper()):
  print('A')
else if(input().islower()):
  print('a')
  

if(input().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 = input("")
if "x".islower():
    print("a")
else:
        print("A")
        

x = str(input())
if x.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.upper())
elif a.islower():
    print(a.lower())

n = input()

if n.isupper():
    print("A")
elif n.islower():
    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):
imports sys

c = sys.stdin.readline()

if ord(c) >= 'a' and ord(c) <= 'z':
  print('a')
else:
  print('A')

import sys

c = sys.stdin.readline().rstrip('\n')

if ord(c) >= ord('a') and ord(c) <= ord('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):
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))

if input().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 = input()

if str.lower(x):
  print("a")
else:
  print("A")

x = 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):
data_a = [ABCDEFGHIJKLMNOPQRSTUVWXYZ]
data_b = [abcdefghijklmnopqrstuvwxyz]

n = input()

if n in data_a:
  print('A')

else:
  print('a')

data_a = ['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 = input()

if n in data_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):
x = input()

if x.isupper() == True:
    y = x.lower()
else:
    y = x.upper()
print(y)

x = input()

if x.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())
A = list(map(int,input().split()))
Q = int(input())

cnt_dict = {}


s = sum(A)

ans = 0

for item in A:
    if item not in cnt_dict:
        cnt_dict[item] = 0
    cnt_dict[item] += 1

for _ in range(Q):
    X,Y = map(int,input().split())

    if X not in cnt_dict:
        cnt_dict[X] = 0
    if Y not in cnt_dict:
        cnt_dict[Y] = 0

    s -= cnt_dict[X] * X
    s += cnt_dict[X] * Y

    cnt_dict[Y] += cnt_dict[X]
    cnt_dict[X] = 0


    print(s)








a = str(input())


if 'A'<=a and a<='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()

if A.lower() == A:
  print(A.lower())
else:
  print(A)

A = input()

if A.lower() == 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):
s=input()
if s.islower()==True:
  print(s.upper())
else:
  print(s.lower())

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

ans = 0

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

s = input()

ans = 0

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

s = input()

ans = 0

if s.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):
a = str(input())

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



a = str(input())

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



a = input()

if a.isupper():
  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):
a = input()
if (a >= 'a' and a <= 'z')
    print(A)
elif(a >= 'A' and a <= 'Z')
    print(a)


a = input()
if (a >= 'a' and a <= 'z'):
    print(A)
elif(a >= 'A' and a <= 'Z'):
    print(a)


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


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


Verdicts: 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') if c.isupper() is True else print('a')

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

a = input()
print('A') if a.isupper() is True 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():
  print(a)
else:
  print(a.lower())

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 >= 'a' && a <='z':
  print('a')
if a >= 'A' && a <='Z':
  print('A')

a = input()
if a >= 'a' and a <='z':
  print('a')
if a >= 'A' and a <='Z':
  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=int(input())
s=""
while n>0:n-=1;s+=chr(97+n%26);n//=26
print(s[::-1])

print("A"if input().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):
L = [chr(ord('a') + i) for i in range(26)]
U = [chr(ord('A') + i) for i in range(26)]

a = input()
if a in U:
    print(a.lower())
if a in L:
    print(a.upper())

L = [chr(ord('a') + i) for i in range(26)]
U = [chr(ord('A') + i) for i in range(26)]
 
a = input()
if a in U:
    print('a')
if a in L:
    print('A')

L = [chr(ord('a') + i) for i in range(26)]
U = [chr(ord('A') + i) for i in range(26)]
 
a = input()
if a in U:
    print('A')
if a in L:
    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 ord(a)<ord('a'):
  print(chr(ord(a)+32))
else:
  print(chr(ord(a)-32))

a=input()
if ord(a)<ord('a'):
  print(chr(ord(a)+32))
else:
  print(a)

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

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

Verdicts: Wrong Answer

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):
a=input()
list=[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 a in list==False:
  print("A")
else:
  print("a")


a=input()
list=[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 list(a)==False:
  print("A")
else:
  print("a")


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

a=input()
list=[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 list(a)=False:
  print("A")
else:
  print("a")

a=str(input())
list=[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 list(a)=False:
  print("A")
else:
  print("a")


TN=input()
list=[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 TN not in list:
  print("A")
else:
  print("a")


a=input()
list=[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 a not in list:
  print("A")
else:
  print("a")


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


Verdicts: Runtime Error

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):
c = input()
ord_c = ord(c)
if ord_c >= 65 and ord_c <= 90:　
  print('A')
else:
  print('a')

# -*- 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))

# -*- 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])

c = input()
oc = ord(c)

if 65<=oc<=90:
  print('A')
else:
  print('a')

Verdicts: 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):
s = input()
x = ord(s[0])
if x>=65 and x<=90:
  print("A")
else if x>=97 and x<=122:
  print("a")

s = input()
x = ord(s[0])
if x>=65 and x<=90:
  print("A")
elif x>=97 and x<=122:
  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".isupper()==True:
    print("A")
else:
    print("a")

a=str(input())
if a.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):
import string
L=string.ascii_lowercase
n=input()
if n in L:
    print(str(n.upper()))
else:
    print(n)

import string
L=string.ascii_lowercase
n=input()
if n in L:
    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(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 = input()

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

X = input()

if X.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 = input()
if N.islower(): print("a")
else: print("a")



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):
N=int(input())
List='a b c d e f g h i j k l m n o p q r s t u v d x y z'.split()
print(List)

Ans=''

while N>=1:
    Amari=N%26
    
    if Amari==0:
        Ans='z'+Ans
    else:
        Ans=List[Amari-1]+Ans
        
    N=(N-1)//26
    
print(Ans)

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.isupper():
  print('A')
else:
  print('a')

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

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)

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)

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]

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)

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

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

Verdicts: Runtime Error

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):
N=int(input())
i=0
x=""
while(N > 26**i):
    i +=1
i -= 1
while(i!=-1):
    if(N//26**i==26):
        x += "z"
        N=N-(26**i)*26
    elif(N//26**i==1):
        x += "a"
        N=N-(26**i)
    elif(N//26**i==2):
        x += "b"
        N=N-(26**i)*2
    elif(N//26**i==3):
        x += "c"
        N=N-(26**i)*3
    elif(N//26**i==4):
        x += "d"
        N=N-(26**i)*4    
    elif(N//26**i==5):
        x += "e"
        N=N-(26**i)*5
    elif(N//26**i==6):
        x += "f"
        N=N-(26**i)*6
    elif(N//26**i==7):
        x += "g"
        N=N-(26**i)*7
    elif(N//26**i==8):
        x += "h"
        N=N-(26**i)*8
    elif(N//26**i==9):
        x += "i"
        N=N-(26**i)*9
    elif(N//26**i==10):
        x += "j"
        N=N-(26**i)*10
    elif(N//26**i==11):
        x += "k"
        N=N-(26**i)*11
    elif(N//26**i==12):
        x += "l"
        N=N-(26**i)*12
    elif(N//26**i==13):
        x += "m"
        N=N-(26**i)*13
    elif(N//26**i==14):
        x += "n"
        N=N-(26**i)*14    
    elif(N//26**i==15):
        x += "o"
        N=N-(26**i)*15
    elif(N//26**i==16):
        x += "p"
        N=N-(26**i)*16
    elif(N//26**i==17):
        x += "q"
        N=N-(26**i)*17
    elif(N//26**i==18):
        x += "r"
        N=N-(26**i)*18
    elif(N//26**i==19):
        x += "s"
        N=N-(26**i)*19
    elif(N//26**i==20):
        x += "t"
        N=N-(26**i)*20
    elif(N//26**i==21):
        x += "u"
        N=N-(26**i)*21
    elif(N//26**i==22):
        x += "v"
        N=N-(26**i)*22
    elif(N//26**i==23):
        x += "w"
        N=N-(26**i)*23
    elif(N//26**i==24):
        x += "x"
        N=N-(26**i)*24    
    elif(N//26**i==25):
        x += "y"
        N=N-(26**i)*25
    i -= 1
print(x)

a=input(str())
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):
a = int(input())

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


a = int(input())

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

a = int(input())

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


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

a = input()

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


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


Verdicts: 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):
ch = input()
if ord(ch) <= 90:
    print(chr(ord(ch) + 32))
else:
    print(chr(ord(ch) - 32))

ch = input()
if ord(ch) <= 90:
    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):
inpt = input()
cap = {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 inpt in cap:
    print('A')
else:
    print('a')

inpt = input()
cap = {'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 inpt in cap:
    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.isupper() = True:
  print 'A'
else:
  print 'a'

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

α = input()
if α.isupper() == True:
  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()
li=[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 a in li:
  print("a")
else:
  print("A")

a=input()
li=["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 a in li:
  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 = int(input())

ans = ''

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

print(ans[::-1])


s = input()

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


Verdicts: Runtime Error

Accepted