1.Matematik Ramazon

N = int(input())
juft = 0
toq = 0
for son in str(N):
 if int(son)%2==0:
   juft += int(son)
 else:
   toq += int(son)
print(juft,toq)

 


2.Bilmasvoyga yordam

X = input()
katta_harflar = ""
kichkina_harflar = ""
for harf in X:
 if harf.upper() == harf:
   katta_harflar += harf
 else:
   kichkina_harflar += harf
print(kichkina_harflar + katta_harflar)


 

3.Salim va Karim
x=input()
n=int(input())
print(x[:n]+x[n+1:])

 


4.Qiziqarli son
N = int(input())
b = 0
c = 0
for i in str(N):
   if int(i)%2 == 0:
       c += int(i)
   else:
       b += int(i)
if N%int(len(str(N))) == 0 and b == c:
   print('Qiziqarli')
else:
   print('Qiziqarli emas')