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

Jupyter Notebook
200621 Current Kernel Logo

Python 3

    File
    Edit
    View
    Insert
    Cell
    Kernel
    Help

1

import sys

2

#sys.exit()

3



4

#N = int(input())

5

#S,T = map(int, input().split())

6

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

7

#A = [int(input()) for _ in range(N)]

8

​

9

#cnt = 0

10

#cnt += 1

11

​

12

​

13

​

14

#print(N)

15

#print(S,T)

16

#print(A)

17

#print('Yes')

18

#print('No')

19

#print(cnt)

3
3
4
5
3
[3, 4, 5]

1

import sys

2

#sys.exit()

3



4

#N = int(input())

5

#S,T = map(int, input().split())

6

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

7

#A = [int(input()) for _ in range(N)]

8

​

9

#cnt = 0

10

#cnt += 1

11

​

12

​

13

​

14

#print(N)

15

#print(S,T)

16

#print(A)

17

#print('Yes')

18

#print('No')

19

#print(cnt)

20

​

21

S = str(input())

22

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

23

​

24

if S in A:

25

    print('A')

26

else:

27

    print('a')

a
a

1

​



import sys
#sys.exit()

#N = int(input())
#S,T = map(int, input().split())
#A = list(map(int, input().split()))
#A = [int(input()) for _ in range(N)]

#cnt = 0
#cnt += 1



#print(N)
#print(S,T)
#print(A)
#print('Yes')
#print('No')
#print(cnt)

S = str(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 S 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):
val = 'b'
if val in 'abcdefghijklmnopqrstuvwxyz':
  ans = 'a'
else:
  ans = 'A'
  
print(ans)

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

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

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

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

if a.islower():
    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):
s = input()
oomoji = ["ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
komoji = ["abcdefghijklmnopqrstuvwxyz"]
if s in oomoji:
  print("A")
else:
  print("a")

s = input()
komoji = "abcdefghijklmnopqrstuvwxyz"
if s in komoji:
  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):
char = input()
output = 'A' if char.isupper() else 'a'

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

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

total = sum(A)
dic = {}
for i in range(q):
  b, c = map(int, input().split())
  b_count = A.count(b)
  c_count = A.count(c)
  dic[c] = c_count + b_count
  if b in dic:
    b_count = dic[b]
  diff = c - b
  total += b_count*diff
  print(total)
  
  
    

alpha = str(input())

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

s = input()
if s == s.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):
IN = input()
if IN.isupper():
  return "A"
else:
  return "a"

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


s = input()
print(s.swapcase())


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

chars = "0abcdefghijklmnopqrstuvwxyz"
a = ""
n_1 = N

while True:
    x = N % 26

    if x == 0:
        x = 26

    a += chars[x]
    n_1 -= x
    if n_1 == 0:
        break

    n_1 //= 26

print(a[::-1])

a = input()

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

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

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

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):
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):
m = input()
x=ord(m)
if x >= 97 and x <= 122:
    print("a")
else:
    print("A"

m = input()
if m == "A":
    print("A")
if m == "a":
    print("a")

m = input()
x = ord(m)
if x >= 97 and x <= 122:
    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):
N=int(input())
A=list(map(int, input().split()))
L=[0]*(100001)

ans=0
for a in A:
  L[a]+=1
  
  ans=sum(A)
Q=int(input())
for i in range(Q):
  B,C=map(int, input().split())
  
  key=L[B]
  L[C]+=key
  ans+=key*(C-B)
  L[B]=0
  print(ans)

S=input()
if S.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):
literal = ('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')
x = int(input())
str2 = ''
str3 = ''
q = x
if x < 27:
    str3 = literal[x-1]
while q > 26:
    q, mod = divmod(x, 26)
    str1 = ''
    if q > 26:
        x = q
        str1 = literal[mod - 1]
        str3 = str1 + str2
        str2 = str3
        str3 = ''
    else:
        str1 += literal[q - 1]
        str1 += literal[mod - 1]
        str3 = str1 + str2
print(str3)

literal = ('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')
x = int(input())
str2 = ''
str3 = ''
q = x
while q > 26:
    q, mod = divmod(x, 26)
    str1 = ''
    if q > 26:
        x = q
        str1 = literal[mod - 1]
        str3 = str1 + str2
        str2 = str3
        str3 = ''
    else:
        str1 += literal[q - 1]
        str1 += literal[mod - 1]
        str3 = str1 + str2
print(str3)

literal = ('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')
x = int(input())
str2 = ''
str3 = ''
q = x
while q > 26:
    q, mod = divmod(x, 26)
    str1 = ''
    if q > 26:
        x = q
        str1 = literal[mod - 1]
        str3 = str1 + str2
        str2 = str3
        str3 = ''
    else:
        str1 += literal[q - 1]
        str1 += literal[mod - 1]
        str3 = str1 + str2
print(str3)

literal = ('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')
x = int(input())
str2 = ''
str3 = ''
q = x
while q > 26:
    q, mod = divmod(x, 26)
    str1 = ''
    if q > 26:
        x = q
        str1 = literal[mod - 1]
        str3 = str1 + str2
        str2 = str3
        str3 = ''
    else:
        str1 += literal[q - 1]
        str1 += literal[mod - 1]
        str3 = str1 + str2
print(str3)

a = input()
if a.islower():
    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):
import numpy as np
import sys
N=int(sys.stdin.readline())
A=list(map(int,sys.stdin.readline().split()))
Q=int(sys.stdin.readline())
AA=set(A)
A=np.array(A)
b=[]
c=[]
for _ in range(Q):
  B,C=map(int,sys.stdin.readline().split())
  if B in AA:
    A[A==B]=C
    AA.add(C)
  print(sum(A))


import numpy as np
N=int(input())
A=list(map(int,input().split()))
Q=int(input())
A=np.array(A)
for _ in range(Q):
  B,C=map(int,input().split())
  A[A==B]=C
  print(sum(A))


a=str(input())
if a.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):
n = int(input())
res = n % 26

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

ans = []
while n//26 > 0 :
  res = n % 26
  if res % 26 != 0:
    ans.append(A[res-1])
  elif res % 26 == 0:
    ans .append(A[25])
  n = n // 26

if res != 0:
  ans.append(A[res-1])
elif res == 0:
  ans.append(A[25])
print(*ans[::-1], sep='')

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

n = input()

flag = re.match(r"[a-z]",n)
if flag != None:
    print(n.upper())
else:
    print(n.lower())

import re

n = input()

flag = re.match(r"[a-z]",n)
if flag != None:
    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 = int(input())
A = int(a. isupper())
if A = "True":
  print("A")
else:
  print("a")

a = int(input())
if a == 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")

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

a = int(input())
if a=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")

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


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):
s = input()
moji = 'abcdefghijklmnopqrstuvwxyz'
for i in range(len(moji)):
  if s == moji[i]:
    print('a')
    break
  print('A')
  

s = input()
moji = 'abcdefghijklmnopqrstuvwxyz'
tmp = 0
for i in range(len(moji)):
  if s == moji[i]:
    tmp = 1
if tmp == 0:
  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)

sssss
sssss
sss

print(anser)

import re
a = input()
content_lower = r'[a-z]'
content_upper = r'[A-Z]'

if(re.match(content_lower, a)):
  print('a')
elif(re.match(content_upper, 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):
n, k = map(int, input().split())

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

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):
if input() in 'qwertyuiopasdfghjklzxcvbnm':
  print 'a'
else:
  print 'A'

if input() in 'qwertyuiopasdfghjklzxcvbnm':
  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 α = 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')

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

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


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


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

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

Verdicts: Runtime Error

Wrong Answer

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()
if re.match(r'[a-z]', a) :
	print 'a'
else:
	print 'A'

import re

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

import re

a = input()
if re.match(r'[a-z]', a) is not None:
	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):
i = input()
print(i.lower())

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

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

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

def main():
    solve()
 
 
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):
if input()[0].islower():
  print('A')
else:
  print('a')

if input()[0].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=input()
a=n
a=a.upper()

if a==n:
  print("Yes")
else:
  print("No")
  

n=input()
a=n
a=a.upper()

if a==n:
  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():
    x = a.lower()
else:
    x = a.upper()
print(x)

a = str(input())

for n in a:
    if n.isupper():
        x = n.lower()
    else:
        x = n.upper()
    print(x)

a = input()

print('A' if a.isupper() 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 sys
 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
 
N = read().rstrip().decode()

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


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

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

input()

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

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


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

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

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):
def main():
  s = input()
  ans = 'A' s.isupper() else 'a'
  print(ans)
  
  
  
if __name__ == '__main__':
  main()

def main():
  s = input()
  ans = 'A' if s.isupper() else 'a'
  print(ans)
  
  
  
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):
n=int(input())
c=""
while n:
    n-=1
    c=chr(n%26+97)+c
    n//=26
print(c)

print("aA"[input()<"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.swapcase())

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):
import re
a = input()
if re.match("[A-Z]", a):
  print(a.lower())
else:
  print(a.upper())

import re
a = input()
if re.match("[A-Z]", a):
  print("a")
else:
  print("A")


import re
a = input()
if re.match("[A-Z]", a):
  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):
s = input()
print(s.lower() if "A"<=s<="B" else s.upper())

print('A' if "A"<=input()<="Z" 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):
#n = int(input())
#a,b = map(int,input().split())
#a_L = list(map(int,input().split()))
s = input()

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

#n = int(input())
#a,b = map(int,input().split())
#a_L = list(map(int,input().split()))
s = input()

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

x = input()
y = x.isupper()
if (y == 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.isupper(){
  print("A")}else{
  print("a")}
  

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"[ord(open(0))>95])


print("Aa"[int(ord(input())>95))


print("Aa"[ord(input())>95)


print("Aa"[ord(input()[0])>95)


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


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

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

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

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

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

a = str(input())
if a.isupper() == True:
  print(a)
else:
  print(a.lower())

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

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


x = input()

res = 'A' if x.isupper() else 'a'

print(res)

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 = [0 for i in range(15)]
alf = "abcdefghijklmnopqrstuvwxyz" 
hasStarted = False
hasFound = False
for j in range(14, -1, -1):
	rem = n // (26**j)
	if rem == 0:
		continue
	else:
		a[j] = rem
		n -= rem*(26**j)
a.reverse()
res = ""
for c in a:
	if hasStarted:
		if c == 0:
			res += "z"
		else:
			res += alf[c-1]
	else:
		if c != 0:
			res += alf[c-1]
			hasStarted = True

print(res)


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

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

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

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

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

c = input()

if c == c.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):
def resolve():
    n,k = map(int, input().split())
    listA = list(map(int,input().split()))
    listA.sort()
    c = sum(listA[:k])
    print(c)
resolve()

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

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

if __name__ == '__main__':
    a = sys.stdin.readline().rstrip()
    print(a.lower())


import sys

if __name__ == '__main__':
    a = sys.stdin.readline().rstrip()
    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())
a = [int(x) for x in input().split()]
q = int(input())
for i in range(q):
  a.sort()
  su = 0
  b,c = map(int,input().split())
  for j in range(n):
    if(a[j] > b ):
      break
    if(a[j] == b):
      a[j] = c
    su += a[j]
  print(su)

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

if((ord('s')>=65 and ord('s')<=92)):
  print('A')
else:
  print('a')
  

s=input()

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

alf=input()
if alf.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):
num = int(input())
res = ""

while num != 0:
	num -= 1
	rem = num % 26
	res += chr(ord('a') + rem)
	num //= 26

print(res)

N = int(input())
ans = ""

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

print(ans[::-1])

c = input()

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

alp = str(input())
print("A") if alp.isupper() == True 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()

print(x.lower())

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):
N=int(input())
number=list(map(int,input().split()))
Q=int(input())
for i in range(Q):
    B,C=map(int,input().split())
    if B in number:
        for i in range(N):
            if number[i]==B:
                number[i]=C
    print(sum(number))

import numpy as np
def cumsum(x):
    return list(np.cumsum(x))

def cumsum_number(N,K,x):
    ans=[0]*(N-K+1)
    number_cumsum = cumsum(x)
    number_cumsum.insert(0,0)
    for i in range(N-K+1):
        ans[i]=number_cumsum[i+K]-number_cumsum[i]
    return ans

N=input()
if N=="A" or N=="B" or N=="C" or N=="D" or N=="E" or N=="F" or N=="G" or N=="H" or N=="I" or N=="J" or N=="K" or N=="L" or N=="M" or N=="N" or N=="O" or N=="P" or N=="Q" or N=="R" or N=="S" or N=="T" or N=="U"or N=="V"or N=="W"or N=="X" or N=="Y" or N=="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 = str(input())
oomoji = ["ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
komoji = ["abcdefghijklmnopqrstuvwxyz"]

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


a = str(input())
oomoji = ["ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
komoji = ["abcdefghijklmnopqrstuvwxyz"]

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):
import re
if len(re.finall('[A-Z]', input()) == 0:
       print('a')
else:
       print('A')

n = input()
if n.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):
n = int( input() )
 
l = []
a = 97
alp = 26
k = 1
n2 = n
while n >= k + 1:
  l.append( ( n2 - 1 ) % alp  )
  n2 = ( n2 - ( n2 - 1 ) % alp ) // alp
  k *= alp
ret = ""
for c in reversed( l ):
  ret += chr( a + c )
print( ret )

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

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

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

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

Verdicts: Runtime Error

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

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

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

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

a=input()

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

if ((asc>=65) and (asc<=90)):
    alpha = chr(asc + 32)
else:
    alpha=chr(asc-32)

print(alpha)

alpha=input()
asc=ord(alpha)

if ((asc>=65) and (asc<=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):
str = input()
print(str.swapcase())


str = input()
if str.isupper() == 1:
  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 in ['a-z']:
  print('a')
elif s in ['A-Z']:
  print('A')
else:


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):
num = int(input())
line = []

while num >= 27:
  amari = num%26
  num = num//26
  line.append(amari)
if num < 27:
  line.append(num)

  
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"]
line.reverse()
for k in line:
  print(alpha[int(k)-1], end = "")

let = input()
if let == let.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())
p=list(map(int,input().split()))
print(sum(sorted(p)[:K]))


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


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


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

def II(): return str(input())
def MI(): return map(int,input().split())
def LI(): return list(map(int,input().split()))
def TI(): return tuple(map(int,input().split()))
def RN(N): return [input().strip() for i in range(N)]


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

    
if __name__ == "__main__":
	main()

import sys

def II(): return str(input())
def MI(): return map(int,input().split())
def LI(): return list(map(int,input().split()))
def TI(): return tuple(map(int,input().split()))
def RN(N): return [input().strip() for i in range(N)]


def main():
    a = II()
    if a.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):
import sys
import math
import collections

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


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


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

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

    

import sys
import math
import collections
 
def set_debug(debug_mode=False):
    if debug_mode:
        fin = open('input.txt', 'r')
        sys.stdin = fin
 
 
def int_input():
    return list(map(int, input().split()))
 
 
if __name__ == '__main__':
    # set_debug(True)
 
    t = input()
    
    if 'A' <= t <= '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, k = [int(j) for j in input().split(' ')]
p = input().split(' ')
 
p.sort()
sum = 0
 
for i in range(0,k):
  sum+=int(p[i])
  
return sum

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

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

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

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

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

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

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

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



if __name__ == '__main__':
    main()

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

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

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

import re

alpha = input()

if(re.compile("[A-Z]").search(alpha)):
    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.islower():
    print("A")
else:
    print("a")


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():
    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())
print(a*b)

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

#A,B = map(int,input().split())



"""
    A = []
    for _ in range(N):
        A.append(list(map(int,input().split())))
"""

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

N = input()

#A,B = map(int,input().split())



"""
    A = []
    for _ in range(N):
        A.append(list(map(int,input().split())))
"""

if N.isupper():
    print(A)
else:
    print(B)

N = input()

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

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

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

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

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

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


s = input()

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


s = input()

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

s = input()

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


s = input()

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


Verdicts: Runtime Error

Wrong Answer

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

P.sort()
price=0
for i in range(K):
  price+=P[i]
  
print(price)


s=input()
TF=s.isupper()
if TF == 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()
if s.issupper == True:
  print("A")
else:
  print("a")

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


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



Verdicts: Runtime Error

Wrong Answer

Accepted