A
a=input()
s=0
if a[0]==a[0].upper():
s+=3
if a[-1]=='.':
s+=4
s+=a.count(' ')
print(s)
B
a=input()
if 'robo' in a or 'contest' in a or 'robocontest.uz' in a:
print("Yes")
else:
print("No")
C
a=input()
if a.lower()=='smile':
print("Yes")
elif a==':)' or a=='(:':
print("Yes")
else:
print("No")
D
a=input()
k=['1','2','3','4','5','6','7','8','9','0']
k1=['-','*','+',':','/','%','^','=']
k2=['!',"'",'"',',','.','`','&','(',')','[',']','{','}',';','#','|','\'']
s=0
s1=0
s2=0
s3=0
for i in a:
if i in k:
s1+=1
elif i in k2:
s2+=1
elif i in k1:
s3+=1
else:
s+=1
l=[s,s1,s2,s3]
for i in l:
if i!=0:
print(i,end=' ')
E
a=int(input())
n=int(input())
l=list(map(int,input().split()))
s=0
for i in range(len(l)):
if a<l[i]:
break
a-=l[i]
s+=1
print(s)
F
n,m=map(int,input().split())
l=list(map(int,input().split()))
s=m
for i in l:
if m>=i:s+=i
else:s-=i
print(s)
G
n = input()
if 'smile' in n.lower() or ')' in n: print('😁')
else: print('😔')
H
n,m=map(int,input().split())
s=0
while n!=m:
s+=1
k=max(n,m)
if k==n:
n=n-m
else:
m=m-n
print(n)
I
a=list(map(int,input().split()))
s=min(a)
d=s*3+a.index(s)
print(d)
J
n,m=map(int,input().split())
k= [(1, 2), (2, 1), (-1, 2), (-2, 1), (-1, -2), (-2, -1), (1, -2), (2, -1)]
s= 0
for i in k:
x=n+i[0]
y=m+i[1]
if 1<=x<=8 and 1<=y<=8:
s+=1
print(s)
K
a,b,c=map(int,input().split())
a1,b1,c1=map(int,input().split())
a2,b2,c2=map(int,input().split())
if a1+c2+b==c+b1+a2 and c+b1+a2==b2+a+c1:
print(a1,c2,b)
print(c,b1,a2)
print(b2,a,c1)
else:
print(-1)
Qolganlariga berilaydi!😁😁