TASK A:

a=int(input())
print(a*a)

TASK B:

n=int(input())
a=10000
if a//n<=30:
   print(a//n,'kun')
elif 360>a//n>30:
   print((a//n)//30,'oy', (a//n)%30, 'kun')
else:
   print( (((a//n)//30)%360)//12,'yil', (((a//n)//30)%360)%12,'oy', (a//n)%30 ,'kun')

TASK C:

number = []
for i in input():
   number.append(i)
number.sort()
if '0' in number:
   g = ''
   for i in range(len(number)):
       if number[i]!='0':
           g = number[i]
           break
   number.remove(g)
   number.insert(0, g)
print(int(''.join(number))+int(''.join(sorted(number, reverse=True))))

TASK  D:

a=int(input())
print('9'+'0'*(a-1))

TASK E:

a=input()
print(int(eval(a)))

TASK F:

x, y, z, s = map(int, input().split())
ans = 0
for i in range(s//x+1):
    for j in range(s//y+1):
        for k in range(s//z+1):
            if i*x+j*y+z*k==s:ans+=1
print(ans)

TASK G:

n,x=map(int,input().split())
z,y=map(int,input().split())
zarar=n*3*30*12*3000
foyda=(z*n+y*n)*12
if foyda>zarar:
   print('YES', foyda-zarar)
elif foyda==zarar:
   print(-1)
else:
   print('NO', zarar-foyda)