[Image] 


-----Input-----

The first line of the input is a string (between 1 and 50 characters long, inclusive). Each character will be a letter of English alphabet, lowercase or uppercase.

The second line of the input is an integer between 0 and 26, inclusive.


-----Output-----

Output the required string.


-----Examples-----
Input
AprilFool
14

Output
AprILFooL

Difficulty: interview

Starter code:

Solutions:
t, p = input().lower(), 'abcdefghijklmnopqrstuvwxyz|'[int(input())]
print(''.join(i.upper() if i < p else i for i in t))

_27 = input()
_16 = int(input())
_27 = _27.lower()
_4 = ""
for _26 in range(len(_27)):
    _19 = _27[_26]
    if ord(_19) < _16 + 97:
        _4 = _4 + _19.upper()
    else:
        _4 = _4 + _19.lower()
print(_4)


s, n = input(), int(input())

res = ''

for x in s.lower():
    if ord(x) < n + 97: res += x.upper()
    else: res += x

print(res)

s, x = input().lower(), int(input())
print(''.join(ch.upper() if ord(ch) < x + 97 else ch.lower() for ch in s))

text = input().lower()
caps = int(input())+97
for letter in text:
	print(letter.upper(), end='')if letter < chr(caps) else print(letter, end='')
print()

s=input();s=s.lower();s=(' '.join(s)).split();n=int(input())
for i in range(0,len(s)):
    if n+96>=ord(s[i]):
        s[i]=chr(ord(s[i])-32)
for j in range(0,len(s)):
    print(s[j],end='')


s = input()
n = int(input())
d = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
e = 'abcdefghijklmnopqrstuvwxyz'
for i in s:
    z = ord(i) - ord('a') if ord('a') <= ord(i) and ord(i) <= ord('z') else ord(i) - ord('A')
    if z < n:
        print(d[z], end = '')
    else:
        print(e[z], end = '')

a, s = input().lower(), int(input())
print(''.join(t.upper() if ord(t) < s + 97 else t.lower() for t in a))

a = list(input().lower())
b = int(input())
for i in range(len(a)):
	if ord(a[i]) - ord('a') < b:
		a[i] = a[i].upper()
print(''.join(a))

s = input().lower()
k = int(input())
result = ''.join(c.upper()
                 if ord(c) < k+97
                 else c.lower()
                 for c in s)
print(result)


x = "abcdefghijklmnopqrstuvwxyz"
X = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
z = list(input())
n = int(input())
for i in range(len(z)):
    if(z[i] in x):
        k = x.index(z[i]) + 1
    else:
        k = X.index(z[i]) + 1
    if(k <= n):
        z[i] = z[i].upper()
    else:
        z[i] = z[i].lower()
ans = "".join(z)
print(ans)

s=input()
n=int(input())
s=s.lower()
ans=""
for i in range(len(s)):
    x=s[i]
    if(ord(x)<n+97):
        ans+=x.upper()
    else:
        ans+=x.lower()
print(ans)


a = input().lower()
num = int(input())
c = ""
for i in a:
    if ord(i) < num+97:
        c += i.upper()
    else:
        c += i.lower()
print(c)


x = "abcdefghijklmnopqrstuvwxyz"
X = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
z = list(input())
n = int(input())
for i in range(len(z)):
    if(z[i] in x):
        k = x.index(z[i]) + 1
    else:
        k = X.index(z[i]) + 1
    if(k <= n):
        z[i] = z[i].upper()
    else:
        z[i] = z[i].lower()
ans = "".join(z)
print(ans)

s=input()
n=int(input())
s=s.lower()
ans=""
for i in range(len(s)):
    x=s[i]
    if(ord(x)<n+97):
        ans+=x.upper()
    else:
        ans+=x.lower()
print(ans)


a = input().lower()
num = int(input())
c = ""
for i in a:
    if ord(i) < num+97:
        c += i.upper()
    else:
        c += i.lower()
print(c)