ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 11.01.2024
Просмотров: 48
Скачиваний: 1
ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.
>>> pow(2,3)
8
>>> 2**3
8
>>> pow(10,2)
100
>>> pow(25,0.5)
5.0
>>> pow(25,1/2)
5.0
>>> 25**(1/2)
5.0
>>> 25**(0.5)
5.0
>>>
# # - 1 qatorli kommentariy. ''' -- ko'p qatorli kommentariy
'''
81-bet, 2-topshiriq
a=int(input())
b=int(input())
c=int(input())
s=a+b+c
p=a*b*c
ds=s%10 # s нинг охирги раками
dp=p%10 # p нинг охирги раками
print(ds+dp)
'''
3-topshiriq
aydin=int(input())
sanjar=int(input())
asqar=int(input())
s=aydin+sanjar+asqar
print(s//3)
print(s%3)
t=int(input('umumiy uzunlik '))
s=int(input('jami sarflangan pul '))
m=int(input('ipakning bahosi '))
n=int(input('ipakning uzunligi '))
# s=m*n+(t-n)*x
x=(s-m*n)//(t-n)
print('chitning bahosi',x)
90-bet
1-top
a=int(input())
s=a*a # s=a**2 s=pow(a,2)
p=4*a
print('s=',s,' p=', p,sep='')
2 топширик
a=int(input())
b=int(input())
t=a
a=b
b=t
print('a=',a,' b=',b,sep='')
2-usul
a=int(input())
b=int(input())
a,b=b,a
print('a=',a,' b=',b,sep='')
3-усул
a=int(input())
b=int(input())
a=a+b
b=a-b
a=a-b
print('a=',a,' b=',b,sep='')
3-ещз
a=input()
b=input()
s=(a+'-'+b+'\n')*3
print(s)
4-топ
1-пункт
print(1)
print(22)
print(333)
print(4444)
print(55555)
2-пункт
print('*'*11)
print('* * *')
print('*'*11)
print('* * *')
print('*'*11)
3-п
print(' *')
print(' *')
print(' ***')
print(' ***')
print('***')
print(' *\n'*2)
5-топ
r=int(input())
pi=3.14
L=2*pi*r
S=pi*r**2
print('L+',L)
print('S=',S)
6-топ
n=int(input())
d4=n%10000//1000
d3=n%1000//100
d2=n%100//10
d1=n%10//1
print(d1+d3)
7-top
n=int(input())
s1=n//1000
s2=n%1000
print(s1+s2)
>>> a='matematika'
>>> a
'matematika'
>>> a[0]
'm'
>>> a[2]
't'
>>> a[7]
'i'
>>> a[8]
'k'
>>> a[9]
'a'
>>> len(a)
10
>>> a[-1]
'a'
>>> a[-2]
'k'
>>>
>>> a[0:4]
'mate'
>>> a[0:5]
'matem'
>>> a[2:7]
'temat'
>>>
>>> a='matematika'
>>> a[2:6]
'tema'
>>> a[2:10]
'tematika'
>>> a[2:]
'tematika'
>>> a[:6]
'matema'
>>> a[:5]
'matem'
>>> a[:]
'matematika'
>>> a[2]
't'
>>> a[]
SyntaxError: invalid syntax
>>> a[::2]
'mtmtk'
>>> a[1:9:2]
'aeai'
>>> a[1:10:2]
'aeaia'
>>> a[::3]
'meta'
7-топ. 2-усул
=input()
s1=int(n[0:2])
s2=int(n[2:5])
print(s1+s2)
n=input()
s1=n[0:2]
s2=n[2:5]
# print(s1,s2)
print(int(s1)+int(s2))
срез дейилади
>>> a='informatika'
>>> a[::-1]
'akitamrofni'
>>> b='anara'
>>> b[::-1]
'arana'
>>> c='kiyik'
>>> c[::-1]
'kiyik'
>>> c[::-2]
'kyk'
>>> c[::-3]
'ki'
>>> a[::-2]
'aiarfi'
>>> a[::-3]
'atrn'
85-bet, 2-top
2-usul
n=input()
kilo=int(n[0:-6])
metr=int(n[-6:-3])
canti=int(n[-3:-1])
milli=int(n[-1])
print(kilo,'km',metr,'m',canti,'cm',milli,'mm'
n=input()
kilo=int(n[0:-6])
metr=int(n[-6:-3])
canti=int(n[-3:-1])
milli=int(n[-1])
print(f'{kilo} km {metr} m {canti} cm {milli} mm')
n=input()
kilo=int(n[0:-6])
metr=int(n[-6:-3])
canti=int(n[-3:-1])
milli=int(n[-1])
print(F'{kilo} km {metr} m {canti} cm {milli} mm')
8-top
x,y,z=map(int,input().split())
a=(2*x**2-y*z)/abs(x-9*z)+(6*x-z)/(8*x*z-2*y)
print(a)
#9-top a) kamida 4 xonali son bo'lishi kerak
n=input()
t=int(n[:-3])
c=int(n[-3])
k=int(n[-2:])
print(f'{t} tonna {c} centner {k} kilogramm')
'''
n=int(input())
t=n//1000
c=n%1000//100
k=n%100
print(t,c,k)
n=int(input())
t=n//1000
c=n%1000//100
k=n%100
print(f'{t} tonna {c} centner {k} kilogramm')
#9-top b) 1 tonna =1 000 kg 60 t = 60 000 kg
n=int(input())
v=(n+60000-1)//60000
print(f'{v} vagon')
# 120001//60000=2
# 120001+60000-1=180000 180 000//60 000=3
# 180000+60000-1=239999 239 999//60 000=3
#10-top
t1=int(input())
t2=int(input())
t3=int(input())
t4=int(input())
t5=int(input())
t=t1+t2+t3+t4+t5
print(t//5)
93-bet
k=input().split()
print(k)
print(k[2])
k=input().split('-')
print(k)
print(k[0]+k[5])
print(int(k[0])+int(k[5]))
k=input().split('*')
print(k)
print(k[0]+k[-1])
print(int(k[0])+int(k[-1]))
1-2-123-45-78-120
['1', '2', '123', '45', '78', '120']
1120
121
>>>
==== RESTART: C:/Users/1/AppData/Local/Programs/Python/Python38-32/2-rday.py ===
123*456*789*0
['123', '456', '789', '0']
1230
123
print('123','456','asdfg',sep='*')
print('maktab',end='+')
print('sinf')
123*456*asdfg
maktab+sinf
95-bet
2-usul
a,b=map(int,input().split('+'))
print(f'{a}+{b}={a+b}')
a,b=map(int,input().split('-'))
print(f'{a}-{b}={a-b}')
a,b=map(int,input().split('*'))
print(f'{a}*{b}={a*b}')
a,b=map(int,input().split('/'))
print(f'{a}/{b}={a/b}')
659+985
659+985=1644
654-586
654-586=68
145*556
145*556=80620
200/25
200/25=8.0
>>>
a,b,c,d=map(int,input().split('*'))
print(a*b*c*d)
352*985*25*3
26004000
96-bet
3-top
p,k=map(int,input().split())
print(2*p-k)
'''
#4-top
a,k,c=map(int,input().split())
print(a//k,a//c)
#100-bet 2-top
a=input()
b=input()
c=input()
print(a+b+c)
print(int(a)+int(b)+int(c))
100-бет. уй иши
a=486
x=486//100=4
486//10=48 y=48%10=8
z=486%10=6
b=4*100+6=406
print(b) 406
>>> 14.141-5.45
8.690999999999999
>>> 25.14+15.458
40.598
>>> 85/17
5.0
>>> 85//17
5
>>> 16.5//4
4.0
>>> 4.0%7
4.0
>>> 19.5//4%7
4.0
>>> 3*7//2%7
3
>>> 14.141-5.45
8.690999999999999
>>> 128.5%10
8.5
>>> 856/177
4.836158192090395
>>> round(856/177)
5
>>> str(40)
'40'
>>> str(int(25.14+15.458))
'40'
>>>
101-бет
4-топ
Ә
a=2.5
x=4
b=5
c=3.5
d=2
z=int((a*x-b)*x+c)*x-d
print(z)
102-bet, 5-top
k1,n1=map(int,input().split())
k2,n2=map(int,input().split())
k3,n3=map(int,input().split())
k4,n4=map(int,input().split())
k=k1+k2+k3+k4
n=n1+n2+n3+n4
print(k,':',n)
#7 - top k>p>n
s,k,p,n=map(int,input().split())
a=s//k
s=s%k
a=a+s//p
s=s%p
a=a+s//n
print(a)
# 9-top
a,b,c=map(int,input().split())
t=a+b+c
print(t)
#10-top
v1,v2,t=map(int,input().split())
s=abs(v2-v1)*t
print(s)
v1,v2,s=map(int,input().split())
t=s/abs(v1-v2)
print(t)
#v2>v1 v2-v1=s/t
t,v1,s=map(int,input().split())
v2=s//t+v1
print(v2)
'''
#v2>v1 v2-v1=s/t
t,v2,s=map(int,input().split())
v1=abs(v2-s/t)
print(v1)
7-синф
129-бет
f1=open("in.txt","r")
f2=open("out.txt","a")
a=f1.readline() # a='10'
b=f1.readline() # b='20'
a=int(a) # a=10
b=int(b) # b=20
s=a+b # s=10+20=30
s=str(s) # s='30'
f2.write(s)
f2.write('\n')
f1.close()
f2.close()
a=int(input())
b=int(input())
s=a+b
print(s)
n=int(input())
if n>0:
print(f'{n} musbat son')
elif n==0:
print(0)
else:
print(f'{n} manfiy son')
n=int(input())
if n%2==0:
print(f'{n} juft son')
else:
print(f'{n} toq son')
n=int(input())
if n%3==0:
print(f"{n} 3-ga bo'linadi")
else:
print(f"{n} 3-ga bo'linmaydi")
a=int(input())
b=int(input())
if a>b:
m=a
else:
m=b
print(b)
'''
135-bet, 9-top
a=int(input())
b=int(input())
if a>b:
print(a)
else:
print(b)
11-топ
if n%3==0:
print(f"{n} 3-ga bo'linadi")
else:
print(f"{n} 3-ga bo'linmaydi")
n=int(input())
if n%5==0:
print(f"{n} 5-ga karrali")
else:
print(f"{n} 5-ga karrali emas")
#13-top
a=int(input())
b=int(input())
if a>b:
a=a-b
else:
a=a+b
print(a,b)
# abs
x=int(input())
if x>=0:
y=x
else:
y=-x
print(y)
14-top
x=int(input())
if x>0:
y=x**2
else:
y=-x
print(y)
15-топ
a=int(input())
b=int(input())
c=int(input())
if (a+b>c) and (a+c>b) and (b+c>a):
print('YES')
else:
print('NO')
#16-top
n=int(input())
d1=n%1000//100
d2=n%100//10
d3=n%10//1
s=d1+d2+d3
b=n/7
if s>b:
print(f"{s}>{b} yig'indi katta")
else:
print(f"{b}>{s} bo'linma katta")
'''
#17-top 2)
n=int(input())
d1=n%1000//100
d2=n%100//10
d3=n%10//1
if d1>d3:
print("1-raqam katta")
elif d1==d2:
print('1 va 2-raqamlar teng')
else:
print('2-raqam katta')
#17-top 1)
n=int(input())
d1=n%1000//100
d2=n%100//10
d3=n%10//1
if d1>d3:
print("1-raqam katta")
elif d1==d3:
print('1 va 3-raqamlar teng')
else:
print('3-raqam katta')
# parol
parol='student'
s=input('parolni kiriting:')
if s==parol:
print('Welcome')
else:
print('Error')
138-бет
n=int(input('yoshingizni kiriting'))
if n>=2 and n<5:
print('multfilm')
elif n>=5 and n<8:
print("o'yin")
else:
print('robototexnika')
140-бет
print("Nuqtaning koordinatalarini kiriting. x va y 0 ga teng emas")
x,y=map(int,input().split())
if x>0:
if y>0:
print(1)
else:
print(4)
else:
if y>0:
print(2)
else:
print(3)
2-усул
print("Nuqtaning koordinatalarini kiriting. x va y 0 ga teng emas")
x,y=map(int,input().split())
if x>0
print(1)
elif x<0
print(2)
elif x<0>y:
print(3)
else:
print(4)
[12:53, 13.06.2022] +7 747 223 5788: x=int(input())
if x>1:
y=x**2/(2*x+1)
elif x<-2:
y=-3*x+5
else:
y=x
print(y)
10-топ
n=int(input())
if n>0:
print(1)
else:
print(0)
11-топ
a,b,c=map(int,input().split())
if a==b==c:
print(3)
elif a==b or b==c or a==c:
print(2)
else:
print(0)
a,b,c=map(int,input().split())
if a==b:
if b==c:
print(3)
elif a==b or b==c or a==c:
print(2)
else:
print(0)
12-топ
a=int(input())
b=int(input())
c=int(input())
if (a+b>c):
if (a+c>b):
if (b+c>a):
print('YES')
else:
print('NO')
''
a=int(input())
b=int(input())
c=int(input())
if (a+b>c) and (a+c>b) and (b+c>a):
print('YES')
else:
print('NO')
144-бет 1 топ
n=int(input())
if n%2==0:
print(n+2)
else:
print(n+1)
# 144-bet, 2-top
n=int(input())
if n%4==0 and n%100!=0 or n%400==0:
print('YES')
else:
print('NO')
'''
1900 28
1901 28
1902 28
1903 28
1904 29
1908 29
1912 29
...
1996 29
1997 28
1998 28
1999 28
2000 29
2020 29
2021 28
2022 28
2023 28
2024 29
...
2100 28
...
2200 28
2300 28
2400 29
!= teng emas
# 3-top
x=int(input())
if x<0:
y=x**2
elif x>=4:
y=4
else:
y=x
print(y)
4-топширик
1-усул
a,b,c=map(int,input().split()) # 1 5 10
maximum=a # mx=1
if b>maximum: # 5>1
maximum=b # mx=5
if c>maximum: # 10>5
maximum=c # mx=10
minimum=a # mn=1
if b1
minimum=b # mn=1
if c1
minimum=c # mn=1
med=a+b+c-maximum-minimum # medium-o'rtacha
print(f"max={maximum}, min={minimum}, o'rtacha={med}")
[09:32, 14.06.2022] +7 747 223 5788: 1 2 3
max=3, min=1, o'rtacha=2
>>>
12 12 13
max=13, min=12, o'rtacha=12
>>>
12 12 12
max=12, min=12, o'rtacha=12
>>>
a,b,c=map(int,input().split()) # 1 5 10
maximum=max(a,b,c)
minimum=min(a,b,c)
med=a+b+c-maximum-minimum # medium-o'rtacha
print(f"max={maximum}, min={minimum}, o'rtacha={med}")
2-усул????
# 5-top
n=int(input())
d1=n%10000//1000
d2=n%1000//100
d3=n%100//10
d4=n%10//1
print(d1,d2,d3,d4)
if d1==d4 and d2==d3:
print('simmetrik')
else:
print('simmetrik emas')
# 5-top 2-usul
n=input()
n=n.rjust(4,'0') # rjust r-right o'ng just-tekislash o'ng tomonga tekislash
a=n[::-1]
print(n,a)
if a==n:
print('simmetrik')
else:
print('simmetrik emas')
150-бет
6-топ
>>> x=0
>>> y=-20
>>> (x0) and not (x>=0)
False
>>>
# 7-top
x=int(input())
if x-2==0: # x==2
print("0 ga bo'lish mumkin emas")
else:
y=(x+3)/(x-2)
print(y)
# 7-top 2-usul
x=int(input())
if x!=2: # x!=2
y=(x+3)/(x-2)
print(y)
else:
print("0 ga bo'lish mumkin emas")
'''
# 7-top
x=int(input())
if x-2==0: # x==2
print("0 ga bo'lish mumkin emas")
else:
y=(x+3)/(x-2)
print(y)
'''
'''
x=int(input())
if 5*x*x==0: # x==0
print("0 ga bo'lish mumkin emas")
else:
y=3*(x+1)/(5*x**2)
print(y)
'''
'''
x=int(input())
if 3*x+18==0: # x==-6
print("0 ga bo'lish mumkin emas")
else:
y=2*x**2/(3*x+18)
print(y)
'''
151-бет
10-топ
n=int(input())
if 0<=n<40:
print(2)
elif 40<=n<=64:
print(3)
elif 65<=n<=84:
print(4)
elif 85<=n<=100:
print(5)
else:
print('100 dan ortmaydigan son kiriting')
151-153-бет
a=1
b=2
c=-3
D=b*2-4*a*c=22-4*1(-3)=4+12=16
D>0
x1=(-b+sqrt(D))/(2*a)=(-2+4)/(2*1)=2/2=1.0
x2=(-b-sqrt(D))/(2*a)=(-2-4)/(2*1)=-6/2=-3.0
a=1
b=6
c=9
D=6**2-4*1*9=36-36=0
x=-b/(2*a)=-6/(2*1)=-3.0
a=1
b=2
c=17
D=2**2-4*1*17=4-68=-64<0
echimi yo'q
#156-bet
# 1-top
'''
print(5,type(5))
print('5',type('5'))
print(5.4,type(5.4))
print(5>4,type(5>4))
a=5
s="5"
c=5.4
d=5>4
print(d,type(d))
'''
a=5
b=6
c=True
if a
print("True")
#156-bet 2-top
print(25/10)
print(25//10)
print(30/10,type(30/10))
print(30//10,type(30//10))
#156-bet 3-top
print(divmod(20,6))
(3, 2)
#156-bet
# 6-top
n=int(input())
if n<=0:
print("nomanfiy son kiriting")
print("v-versta, s-sajen, a-arshin, w-vershok")
a=input("o'lchov birlikni kiriting: ")
if a=='v':
print(f"{n} versta={500*n} sajen")
elif a=='s':
print(F'{n} sajen={3*n} arshin')
elif a=='a':
print(f'{n} arshin={16*n} vershok')
elif a=='w':
print(f'{n} vershok={4.45*n} cm')
else:
print("v,s,a,w harflarini kiriting")
# 157-bet 9-top
if x>y:
if y>z:
print(x,y,z) #x>y>z
else:
if x>z: #x>y z>y x>z>y
print(x,z,y)
else:
print(z,x,y)
else:
if x>z:
print(y,x,z)
else:
if y>z:
print(y,z,x)
else:
print(z,y,x)
x,y,z=map(int,input().split()) # 1 5 10
maximum=max(x,y,z)
minimum=min(x,y,z)
med=x+y+z-maximum-minimum # medium-o'rtacha
print(maximum, med, minimum)
10-top
n=int(input())
if n==1:
print('ponedelnik')
elif n==2:
print('vtornik')
elif n==3:
print('sreda')
elif n==4:
print('chetverg')
elif n==5:
print('pyatnitsya')
elif n==6:
print('subbota')
elif n==7:
print("voskresenye")
else:
print("hafta kuni yo'q")
11-njg
n=int(input("chipta bahosini kiriting "))
if 700
print("faqat kinoga bilet sotib olasiz")
elif 0<=n<=700:
print("kinoga bilet va ichimlik sotib olasiz")
elif n>1000:
print("keyingi safar kirasiz")
else:
print("chipta bahosi manfiy bo'lmaydi")
158-bet
F1=open('in2.txt', 'r')
F2=open('out.txt', 'w')
n=F1.readline()
n=int(n)
if n%4==0 and n%100!=0 or n%400==0: # != teng emas
F2.write('YES')
else:
F2.write('NO')
F1.close()
F2.close()
F1=open('in2.txt', 'r')
F2=open('out2.txt', 'w')
n=F1.readline()
n=int(n)
if n%2==0:
F2.write('juft')
else:
F2.write('toq')
F1.close()
F2.close()
a,b,c=map(int,input().split())
if a%2==0 and b%2==0 and c%2==0 or a%2==1 and b%2==1 and c%2==1:
print('NO')
else:
print('YES')
'''
2*2*2=8
t t t
t t j +
t j t +
j t t +
j j t +
j t j +
t j j +
j j j
'''
x=23
if x>10:
num=0
else:
num=11
# num=0 if x>10 else 11 - тернарный оператор - if операторининг кискачаси
name="John"
print('Hi, %s' %name) # %s - string
a=123
print("kiritilgan son= %d" %a) #d - decimal 10 li tizimdagi son
a=12
print("kiritilgan son= %04d" %a)
a=int(input('tovar narxini kiriting'))
b=int(input('tovar miqdorini kiriting'))
s=a*b
if s>5000:
s=s*0.9
print(int(s))
183-бет. 7-мисол юкоридаги
8-мисол
#183-bet 8-misol
x=float(input())
if x>=4:
print(x**2+4*x)
elif x<2 and x+1!=0: # x!=-1
print(3*x/(x+1))
elif x<2 and x+1==0:
print("0 ga bo'lish mumkin emas")
else:
print((x-1.5)**0.5)
#184-bet 9-misol
x=int(input())
y=int(input())
z=int(input())
if x
if x
print(x)
else: # z
print(z)
else: # y
if y
print(y)
else: # z
print(z)
#2-usul
x=int(input())
y=int(input())
z=int(input())
minimum=x
if y
minimum=y
if z
minimum=z
print(minimum)
4-usul
print(min(list(map(int,input().split()))))
'''
'''
print(sum(list(map(int,input().split()))))
'''
print(max(list(map(int,input().split()))))
3-usul
x=int(input())
y=int(input())
z=int(input())
print(min(x,y,z))
'''
#184-bet, 10-misol
x1,y1=map(int,input().split())
x2,y2=map(int,input().split())
if (x1+y1+x2+y2)%2==0:
print('rangi bir xil')
else:
print('rangi ikki xil')
'''
#11-misol 3 sondan o'rtachasini topish
x=int(input())
y=int(input())
z=int(input())
if x<=y<=z or z<=y<=x:
print(y)
else:
if x<=z<=y or y<=z<=x:
print(z)
else:
print(x)
'''
'''
x=int(input())
y=int(input())
z=int(input())
if x<=y<=z or z<=y<=x:
print(y)
elif x<=z<=y or y<=z<=x:
print(z)
else:
print(x)
'''
x=int(input())
y=int(input())
z=int(input())
print(x+y+z-max(x,y,z)-min(x,y,z))
#188-bet
a=int(input())
b=int(input())
if a>b:
a=2*a
else:
a=2*a
b=2*b
print('a=',a)
print('b=',b)
#190-bet 7-misol
a=int(input())
b=int(input())
c=int(input())
if a*b*c<100:
a=5*a
b=5*b
c=5*c
print(f'a={a}, b={b}, c={c}')
# 190-bet 8-misol
a=int(input())
b=int(input())
if a>=10 and a<=13 and b>50:
print('qabullandi')
else:
print('qabullanmadi')
#192-bet 9-misol
x=int(input())
if x<=3:
fx=x**2+2*x+9
else:
fx=1/(x**3+6)
print(fx)
#192-bet 10-top
n=5
s=0
print('1. // operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="A":
s=s+1
print('2. % operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="B":
s=s+1
print('3. % operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="B":
s=s+1
print('4. % operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="B":
s=s+1
print('5. % operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="B":
s=s+1
if s>=0.85*n:
print("a'lo")
elif 0.65*n<=s<0.85*n:
print("yaxshi")
elif 0.4*n<=s<0.65*n:
print("qoniqarli")
else:
print("qayta topshiring")
#194-bet 3-top
print("3 botir ertagi")
print("chap tomon-c")
print("o'ng tomon-o")
print("to'g'ri-t")
s=input()
if s=='c':
print("otingni yo'qotasan")
elif s=='o':
print("hayotingni yo'qotasan")
elif s=='t':
print("baxt topasan")
else:
print("c,o,t harflaridan birini tanlang")
#195-bet 5-top
age=int(input())
if 10<=age<=13:
print("10-13 yoshli o'quvchi" )
#195-bet 7-top
a,b,c=map(int,input().split())
maximum=max(a,b,c)
minimum=min(a,b,c)
medium=a+b+c-maximum-minimum
print(maximum,medium,minimum)
7-sinf Kadirkulov 120-bet, 2-top
v,s,t=map(int,input().split())
if s<=v*t:
print("ia")
else:
print("joq")
7-sinf Kadirkulov 120-bet, 3-top
a,b,c,t=map(int,input().split())
if a
print("ia")
else:
print("joq")
#7-sinf Kadirkulov 124-bet, 3-top
p,k,z=map(int,input().split())
if p>0:
print(p**3)
elif p<0:
print(p+k)
else:
print(p-z)
a=int(input())
b=int(input())
if a%2==1 and b%2==1: # (a*b)%2==1
print('ikkalasi toq')
else:
print('juft son bor')
'''
'''
#7-sinf 169-bet 11-topshiriq
a,b,x,y,z=map(int,input().split())
if a>=x and b>=y:
print("o'tadi")
elif a>=y and b>=x:
print("o'tadi")
elif a>=x and b>=z:
print("o'tadi")
elif a>=z and b>=x:
print("o'tadi")
elif a>=y and b>=z:
print("o'tadi")
elif a>=z and b>=y:
print("o'tadi")
else:
print("o'tmaydi")
'''
'''
#2-usul
#7-sinf 169-bet 11-topshiriq
a,b,x,y,z=map(int,input().split())
mx=max(x,y,z)
mn=min(x,y,z)
med=x+y+z-mx-mn
mxd=max(a,b)
mnd=min(a,b)
if mnd>=mn and mxd>=med:
print("o'tadi")
else:
print("o'tmaydi")
'''
'''
**** 8-sinf ******
while
'''
'''
1-10 sonlarni ustun shaklida shiqarish
i=1
while i<=10:
print(i)
i=i+1
'''
'''
1-10 sonlarning kvadratlarini ustun shaklida shiqarish
i=1
while i<=10:
print(f"{i}*2={i*2}")
i=i+1
'''
'''
#1-10 sonlarni bir qatorga shiqarish
i=1
while i<=10:
print(i,end=' ')
i=i+1
'''
# 1-10 gacha oraliqdagi toq sonlarni bir qatorga chiqaring 1 3 5 7 9
i=1
while i<=10:
print(i,end=' ')
i=i+2
'''
'''
# 1-10 gacha oraliqdagi juft sonlarni bir qatorga chiqaring 2 4 6 8 10
i=2
while i<=10:
print(i,end=' ')
i=i+2
'''
i=1
while i<=10:
if i%2==1:
print(i,end=' ')
i=i+1
'''
i=1
while i<=10:
if i%2==0:
print(i,end=' ')
i=i+1
# 105-bet 1masalan 100=2*2*5*5 100: 1 2 4 5 10 20 25 50 100 10=sqrt(100)
# n=47 1 2 3 5 sqrt(47)
n=int(input('n='))
i=2
while i<=n//2:
while not n%i:
print(i, end=' ')
n=n//i
i=i+1
'''
# ****** FOR *****
# for i:=1 to n do step 2 -- Pascal da
#for i in range(a,b,s) a-boshi, b-oxiri, s-qadam
'''
for i in range(21):
print(i,end=' ')
'''
'''
for i in range(10,21):
print(i,end=' ')
'''
'''
for i in range(10,21,2):
print(i,end=' ')
'''
'''
for i in range(20,9,-1):
print(i,end=' ')
'''
'''
for i in range(20,-1,-1):
print(i,end=' ')
'''
'''
#1+2+3+4+5+6+7+8+9+10=55 1+2+3+..+98+99+100=(1+100)+(2+99)+(3+98)+...=101*50=5050
n=int(input())
s=0
for i in range(1,n+1):
if i==1:
print(i,end='')
else:
print(f"+{i}",end='')
s+=i
print(f'={s}')
'''
'''
#109-bet karra jadvali
n=int(input())
for i in range(1,n+1):
for j in range(1,n+1):
print(f"{i}x{j}={i*j}")
print()
'''
103-bet
8-top
i=0
while i<5:
print(i)
i=i+1
103-bet
8-top
i=0
while i<5:
print(i)
i=i+1
104-bet
10-top
0 1 1 2 3 5 8 13 21 34 55 89 ... Fibonachchi sonlari f1=0, f2=1 f(n)=f(n-1)+f(n-2)
f1=0
f2=1
print(f1)
print(f2)
n=10
i=0
while i
f_s=f1+f2
print(f_s)
f1=f2
f2=f_s
i=i+1
11-misol
n=int(input())
i=1
while i<=n:
if n%i==0:
print(i,end=' ')
sonning tub yoki murakkabligini aniqlash
2 3 5 7 11 13 17 19-tub sonlar
faqat ikkita bo'luvchisi bo'lsa, tub son
juft tub son faqat 2 soni
bo'luvchilari soni 2 dan ortiq bo'lsa, murakkab son bo'ladi
murakkab sonlar 4 6 8 9 10 12 14 15 16 18 20
1 soni tub ham, murakkab ham emas
n=int(input())
count=0
i=1
while i<=n:
if n%i==0:
count+=1
if count==2:
print(f'{n} tub son')
elif count>2:
print(f'{n} murakkab son')
else:
print('1 soni tub ham emas, murakkab ham emas')
'''
110-bet 6-misol
0!=1 -- ta'rif bo'yicha
1!=1
2!=1*2=2
3!=1*2*3=6
4!=1*2*3*4=24
5!=1*2*3*4*5=120 n!-- n factorial
'''
n=int(input())
f=1
for i in range(1,n+1):
f=f*i
print(f"{n}!={f}")
#111-bet 7-misol x+y+z=3 x,y,z--natural x,y,z=1
#x+y+z=4 2,1,1 1,2,1 1,1,2
#15x+20y+30z=720
for x in range(1,50):
for y in range(1,40):
for z in range(1,30):
if 15*x+20*y+30*z==720:
print(f"x={x}, y={y}, z={z}")
111-bet 8-misol 4)
for i in range(30,40,-1):
print(i)
print("tamom")
for i in range(16,66+2,3): # for i in range(16,68,3)
print(i)
5) tepadagi
# 111-bet 9-misol
n=10
for i in range(n):
a=int(input("son kiriting "))
if a%2==0 and a>0:
print(f"siz kiritgan son {a} - juft va musbat")
'''
#111-bet 1-soni 1 s=0
2 soni 1 s=1
3 soni 1 s=1
4 soni 1 2 s=1+2=3
5 soni s=1
6 soni 1 2 3 6 s=1+2+3=6 - ajoyib son
8 soni 1 2 4 8 s=1+2+4=7 - ajoyib son emas
28 soni 1 2 4 7 14 28 s=1+2+4+7+14
6 ajoyib son
28 ajoyib son
496 ajoyib son
8128 ajoyib son
'''
for i in range(1,10001):
s=0
for j in range(1,i):
if i%j==0:
s=s+j
if s==i:
print(f'{i} ajoyib son')
#112-bet
#1-misol i - iteration 2+4+6+..42 44 46 48 50 +86+88+90=92*22+46=2070
s=0
for i in range(2,91,2):
s=s+i
print(s)
#112-bet
#2-misol i - iteration 1+3+...+89=2070-45=2025
s=0
for i in range(1,90,2):
s=s+i
print(s)
#112-bet
#4-misol i - iteration
s=0
for i in range(10,101):
s=s+i
print(s)
#112-bet
#5-misol p -odatda ko'paytirish
p=1
for i in range(10,101):
p=p*i
print(p)
257182031095525112107857249934597388918419224714455526533820998388496472644482792132224051962512451185663850090463028434334174412800000000000000000000000
[12:20, 17.06.2022] +7 747 223 5788: p=13_000_000
for i in range(5): #p=10000*12foiz**6oy - murakkab foiz 15816487
p=p*(1+4/100)
print(int(p))
#112-bet
#7-topshiriq
p=10
kun=1
while p<=20:
p=p*((100+10)/100)
kun=kun+1
print(f"{kun}-kuni {round(p,3)} km yuradi")
#7-topshiriq
s=0
p=10
kun=1
while p<=20:
p=p*((100+10)/100)
kun=kun+1
s=s+p
print(f"{kun}-kuni {round(p,3)} km yuradi")
print(f"{kun} kunda {round(s,3)} km yuradi") # 10+11+12.1+...+121.436=125.795
#9-kuni 21.436 km yuradi
#9 kunda 125.795 km yuradi
break operatorining qo'llanishi
n=int(input())
i=2
while i
if n%i==0:
print(F"{n}-murakkab son")
print('i=',i)
break
i=i+1
360000001
360000001-murakkab son
i= 3023
a=1
while a<10:
a=a+1
if a==5:
break # siklni to'xtatish
print(a)
print("tamom")
'''
a=1
while a<10:
a=a+1
if a==5:
break # siklni to'xtatish
print(a)
print("tamom")
'''
'''
2
3
4
'''
'''
a=1
while a<10:
a=a+1
if a==5:
continue # keyingi qadamga o'tish
print(a)
print("tamom")
'''
'''
2
3
4
6
7
8
9
10
tamom
'''
while True: # cheksiz sikl
print("a")
'''
while 1<2: # cheksiz sikl
print(5)
print("almashtirishni yakunlash uchun 0 ni bosing")
while True:
a=int(input("tenge miqdorini kiriting "))
if a==0:
break
d=int(a/420)
print(f"{a} tenge {d} dollar bo'ladi")
print("tamom")
114-bet 2-misol
#114-bet
#number=0
for number in range(15):
if number==7:
break
print("nomer"+str(number))
print('sikldan chiqish')
'''
'''
for number in range(25):
if number==7:
continue
print("nomer"+str(number))
print('sikldan chiqish')
'''
[09:10, 20.06.2022] +7 747 223 5788: #115-bet
#3-topshiriq
for i in range(100):
a=int(input())
if a<0:
print("BREAK")
break
print(a)
#2-usul
a=int(input())
while a>=0:
print(a)
a=int(input())
#4-topshiriq
i=0
while i<10:
if i==3:
i=i+1
continue
print(i)
if i==5:
break
i=i+1
'''
0<10
0!=3
>>>0
0!=5
i=0+1=1
1<10
1!=3
>>>1
1!=5
i=1+1=2
2<10
2!=3
>>>2
2!=5
i=2+1=3
3<10
3==3
i=3+1=4
>>>4
4<10
>>>5
#break
0
1
2
4
5
#5-topshiriq
mn=1002
for i in range(10):
a=int(input())
if a%2==0 and a%3!=0:
mn=min(mn,a)
if mn==1002:
print("kamida bitta juft son kiriting")
else:
print(mn)
1
3
5
7
9
11
13
15
17
19
kamida bitta juft son kiriting
2
1
4
5
7
0
7
9
8
10
javob= 2
from math import inf # inf infinity - cheksizlik
mn=inf
print(mn>10*1000)
True
from math import inf # inf infinity - cheksizlik
mn=inf
print(mn>10*1000)
# -inf - cheksizlik -- juda ham kichik son
: #6-topshiriq
n=int(input())
s=0
for i in range(n):
a=int(input())
s=s+a/n
print(s)
10
1
2
3
4
5
6
7
8
9
10
5.5
# 116-bet
#7-topshiriq
a=0
n=10
for i in range(1,n+1,2):
a=a+1
if a==5:
continue
print(a)
if a==7:
break
'''
i=1 a=1 >>>1
i=3 a=2 >>>2
i=5 a=3 >>>3
i=7 a=4 >>>4
i=9 a=5
i=11
1
2
3
4
# 116-117-betlar
i=1
while i<5:
j=1
while j<5:
print(i,'*',j,'=',i*j)
j=j+1
i=i+1
'''
for i in range(1,5):
for j in range(1,5):
print(i,'*',j,'=',i*j)
1 * 1 = 1
1 * 2 = 2
1 * 3 = 3
1 * 4 = 4
2 * 1 = 2
2 * 2 = 4
2 * 3 = 6
2 * 4 = 8
3 * 1 = 3
3 * 2 = 6
3 * 3 = 9
3 * 4 = 12
4 * 1 = 4
4 * 2 = 8
4 * 3 = 12
# 118-bet
a=0
while a<10:
a=a+1
if a==5:
continue
print(a)
1
2
3
4
6
7
8
9
10
>>>
for i in range(10):
if i%3==0:
continue
print(i)
1
2
4
5
7
8
>>>
0 узидан бошка хар кандай сонга булинади
'''
119-bet
5-topshiriq
a=0
while a!=7:
a=a+1
if a==5:
continue
print(a)
'''
'''
1
2
3
4
6
7
'''
#119-bet
for num in range(2,10):
if num%2==0:
print('juft son',num)
continue
print('toq son',num)
'''
for num in range(2,10):
if num%2==0:
print('juft son',num)
else:
print('toq son',num)
juft son 2
toq son 3
juft son 4
toq son 5
juft son 6
toq son 7
juft son 8
toq son 9
>>
# 120-bet
# 7-topshiriq
for i in range(10):
print(i)
if i<5:
print('uzilish')
: 0
uzilish
1
uzilish
2
uzilish
3
uzilish
4
uzilish
5
6
7
8
9
2-усул
for i in range(10):
print(i)
if i>=5:
continue
print('uzilish')
# cheksiz sikl
while True:
a=int(input())
print(a*a)
if a==0:
break
'''
while 1<2:
a=int(input())
print(a*a)
if a==0:
break
5
25
6
36
7
49
10
100
11
121
12
144
13
169
13
169
0
0
# 121-bet
i=0
while i<7:
print(i)
i=i+1
else:
print('chiqish')
'''
i=0
while i<7:
print(i)
i=i+1
print('chiqish')
0
1
2
3
4
5
6
chiqish
i=0
while i<7:
if i==5:
break
else:
print(i)
i=i+1
else:
print('chiqish')
'''
'''
break ishga qo'shilsa, else bajarilmaydi
0
1
2
3
4
'''
# else qatnashsa, For ham while kabi bo'ladi
n=int(input())
i=2
while i
if n%i==0:
print('tub son emas')
print(i)
break
i=i+1
else:
print('tub son')
'''
# 123-124 betlar
count=3
while count<8:
print(count,'8 dan kichik')
count=count+1
else:
print(count,'8 dan kichik emas')
3 8 dan kichik
4 8 dan kichik
5 8 dan kichik
6 8 dan kichik
7 8 dan kichik
8 8 dan kichik emas
'''
count=3
while count<8:
print(count,'8 dan kichik')
count=count+1
print(count,'8 dan kichik emas')
'''
# 123-bet
# 7-topshiriq
i=1
while i<=5:
print(i**3)
i=i+1
else:
print('sikl tugadi, i =',i)
1
8
27
64
125
sikl tugadi, i = 6
>>>
'''
# 123-bet
# 7-topshiriq
i=1
while i<=5:
print(i**3)
i=i+1
print('sikl tugadi, i =',i)
#124-bet
#8-topshiriq
a=int(input())
while True:
if a%2==0:
print("juft son",a)
break
a=int(input())
else:
print('juft son uchramadi')
'''
5
7
13
21
101
2
juft son 2
>>>
a=int(input())
for i in range(10):
if a%2==0:
print("juft son",a)
break
a=int(input())
else:
print('juft son uchramadi')
1
3
5
7
9
11
13
15
17
19
21
juft son uchramadi
#124-bet
#9-topshiriq
n=int(input())
for d in range(2,n):
if n%d==0:
print('murakkab son')
break
else:
print('tub son')
'''
'''
n=int(input())
for d in range(2,n):
if n%d==0:
print('murakkab son')
break
else:
print('tub son')
35
tub son
tub son
tub son
murakkab son
xato
'''
'''
#125-bet
# 10-misol
n=int(input())
for i in range(n):
a=int(input())
if a>0:
print(f"{a}-musbat son")
elif a<0:
print(f"{a}-manfiy son")
else:
break
'''
'''
10
1
1-musbat son
2
2-musbat son
3
3-musbat son
-8
-8-manfiy son
-9
-9-manfiy son
0
'''
'''
10
1
1-musbat son
2
2-musbat son
3
3-musbat son
4
4-musbat son
5
5-musbat son
-5
-5-manfiy son
-4
-4-manfiy son
-3
-3-manfiy son
-2
-2-manfiy son
-1
-1-manfiy son
>>>
'''
'''
#125-bet
# 10-misol
n=int(input())
for i in range(n):
a=int(input())
if a>0:
print(f"{a}-musbat son")
elif a<0:
print(f"{a}-manfiy son")
#else:
'''
5
1
1-musbat son
2
2-musbat son
3
3-musbat son
-40
-40-manfiy son
-5
-5-manfiy son
5
1
1-musbat son
2
2-musbat son
0
-3
-3-manfiy son
-5
-5-manfiy son
>>>
'''
'''
#125-bet
# 10-misol
n=int(input())
for i in range(n):
a=int(input())
if a>0:
print(f"{a}-musbat son")
elif a<0:
print(f"{a}-manfiy son")
else:
print("0 soni manfiy ham emas, musbat ham emas")
1
0
0 soni manfiy ham emas, musbat ham emas
'''
125-bet 11-topshiriq
for n in range(2,10):
for x in range(2,n):
if n%x==0:
print(n,'=',x,'*',n//x)
break
else:
print(f"{n}-tub son")
2-tub son
3-tub son
4 = 2 * 2
5-tub son
6 = 2 * 3
7-tub son
8 = 2 * 4
9 = 3 * 3
>>>
'''
>>> ord("A")
65
>>> ord("B")
66
>>> ord('a')
97
>>> ord('Z')
90
>>> chr(91)
'['
>>> chr(92)
'\\'
>>> chr(65)
'A'
>>>
# 125-bet
# chr() funksiyasi ASCII jadvalida berilgan kod bo'yicha simvolni chiqaradi
# ord() simvolning ASCII jadvalidagi kodini chiqaradi
for i in range(32,128):
print(chr(i),end=' ')
if (i-1)%10==0:
print()
! " # $ % & ' ( )
* + , - . / 0 1 2 3
4 5 6 7 8 9 : ; < =
> ? @ 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 [
\ ] ^ _ ` 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 { | }
>>>
! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ 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 [ \ ] ^ _ ` 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 { | }
>>> pow(2,3)
8
>>> 2**3
8
>>> pow(10,2)
100
>>> pow(25,0.5)
5.0
>>> pow(25,1/2)
5.0
>>> 25**(1/2)
5.0
>>> 25**(0.5)
5.0
>>>
# # - 1 qatorli kommentariy. ''' -- ko'p qatorli kommentariy
'''
81-bet, 2-topshiriq
a=int(input())
b=int(input())
c=int(input())
s=a+b+c
p=a*b*c
ds=s%10 # s нинг охирги раками
dp=p%10 # p нинг охирги раками
print(ds+dp)
'''
3-topshiriq
aydin=int(input())
sanjar=int(input())
asqar=int(input())
s=aydin+sanjar+asqar
print(s//3)
print(s%3)
t=int(input('umumiy uzunlik '))
s=int(input('jami sarflangan pul '))
m=int(input('ipakning bahosi '))
n=int(input('ipakning uzunligi '))
# s=m*n+(t-n)*x
x=(s-m*n)//(t-n)
print('chitning bahosi',x)
90-bet
1-top
a=int(input())
s=a*a # s=a**2 s=pow(a,2)
p=4*a
print('s=',s,' p=', p,sep='')
2 топширик
a=int(input())
b=int(input())
t=a
a=b
b=t
print('a=',a,' b=',b,sep='')
2-usul
a=int(input())
b=int(input())
a,b=b,a
print('a=',a,' b=',b,sep='')
3-усул
a=int(input())
b=int(input())
a=a+b
b=a-b
a=a-b
print('a=',a,' b=',b,sep='')
3-ещз
a=input()
b=input()
s=(a+'-'+b+'\n')*3
print(s)
4-топ
1-пункт
print(1)
print(22)
print(333)
print(4444)
print(55555)
2-пункт
print('*'*11)
print('* * *')
print('*'*11)
print('* * *')
print('*'*11)
3-п
print(' *')
print(' *')
print(' ***')
print(' ***')
print('***')
print(' *\n'*2)
5-топ
r=int(input())
pi=3.14
L=2*pi*r
S=pi*r**2
print('L+',L)
print('S=',S)
6-топ
n=int(input())
d4=n%10000//1000
d3=n%1000//100
d2=n%100//10
d1=n%10//1
print(d1+d3)
7-top
n=int(input())
s1=n//1000
s2=n%1000
print(s1+s2)
>>> a='matematika'
>>> a
'matematika'
>>> a[0]
'm'
>>> a[2]
't'
>>> a[7]
'i'
>>> a[8]
'k'
>>> a[9]
'a'
>>> len(a)
10
>>> a[-1]
'a'
>>> a[-2]
'k'
>>>
>>> a[0:4]
'mate'
>>> a[0:5]
'matem'
>>> a[2:7]
'temat'
>>>
>>> a='matematika'
>>> a[2:6]
'tema'
>>> a[2:10]
'tematika'
>>> a[2:]
'tematika'
>>> a[:6]
'matema'
>>> a[:5]
'matem'
>>> a[:]
'matematika'
>>> a[2]
't'
>>> a[]
SyntaxError: invalid syntax
>>> a[::2]
'mtmtk'
>>> a[1:9:2]
'aeai'
>>> a[1:10:2]
'aeaia'
>>> a[::3]
'meta'
7-топ. 2-усул
=input()
s1=int(n[0:2])
s2=int(n[2:5])
print(s1+s2)
n=input()
s1=n[0:2]
s2=n[2:5]
# print(s1,s2)
print(int(s1)+int(s2))
срез дейилади
>>> a='informatika'
>>> a[::-1]
'akitamrofni'
>>> b='anara'
>>> b[::-1]
'arana'
>>> c='kiyik'
>>> c[::-1]
'kiyik'
>>> c[::-2]
'kyk'
>>> c[::-3]
'ki'
>>> a[::-2]
'aiarfi'
>>> a[::-3]
'atrn'
85-bet, 2-top
2-usul
n=input()
kilo=int(n[0:-6])
metr=int(n[-6:-3])
canti=int(n[-3:-1])
milli=int(n[-1])
print(kilo,'km',metr,'m',canti,'cm',milli,'mm'
n=input()
kilo=int(n[0:-6])
metr=int(n[-6:-3])
canti=int(n[-3:-1])
milli=int(n[-1])
print(f'{kilo} km {metr} m {canti} cm {milli} mm')
n=input()
kilo=int(n[0:-6])
metr=int(n[-6:-3])
canti=int(n[-3:-1])
milli=int(n[-1])
print(F'{kilo} km {metr} m {canti} cm {milli} mm')
8-top
x,y,z=map(int,input().split())
a=(2*x**2-y*z)/abs(x-9*z)+(6*x-z)/(8*x*z-2*y)
print(a)
#9-top a) kamida 4 xonali son bo'lishi kerak
n=input()
t=int(n[:-3])
c=int(n[-3])
k=int(n[-2:])
print(f'{t} tonna {c} centner {k} kilogramm')
'''
n=int(input())
t=n//1000
c=n%1000//100
k=n%100
print(t,c,k)
n=int(input())
t=n//1000
c=n%1000//100
k=n%100
print(f'{t} tonna {c} centner {k} kilogramm')
#9-top b) 1 tonna =1 000 kg 60 t = 60 000 kg
n=int(input())
v=(n+60000-1)//60000
print(f'{v} vagon')
# 120001//60000=2
# 120001+60000-1=180000 180 000//60 000=3
# 180000+60000-1=239999 239 999//60 000=3
#10-top
t1=int(input())
t2=int(input())
t3=int(input())
t4=int(input())
t5=int(input())
t=t1+t2+t3+t4+t5
print(t//5)
93-bet
k=input().split()
print(k)
print(k[2])
k=input().split('-')
print(k)
print(k[0]+k[5])
print(int(k[0])+int(k[5]))
k=input().split('*')
print(k)
print(k[0]+k[-1])
print(int(k[0])+int(k[-1]))
1-2-123-45-78-120
['1', '2', '123', '45', '78', '120']
1120
121
>>>
==== RESTART: C:/Users/1/AppData/Local/Programs/Python/Python38-32/2-rday.py ===
123*456*789*0
['123', '456', '789', '0']
1230
123
print('123','456','asdfg',sep='*')
print('maktab',end='+')
print('sinf')
123*456*asdfg
maktab+sinf
95-bet
2-usul
a,b=map(int,input().split('+'))
print(f'{a}+{b}={a+b}')
a,b=map(int,input().split('-'))
print(f'{a}-{b}={a-b}')
a,b=map(int,input().split('*'))
print(f'{a}*{b}={a*b}')
a,b=map(int,input().split('/'))
print(f'{a}/{b}={a/b}')
659+985
659+985=1644
654-586
654-586=68
145*556
145*556=80620
200/25
200/25=8.0
>>>
a,b,c,d=map(int,input().split('*'))
print(a*b*c*d)
352*985*25*3
26004000
96-bet
3-top
p,k=map(int,input().split())
print(2*p-k)
'''
#4-top
a,k,c=map(int,input().split())
print(a//k,a//c)
#100-bet 2-top
a=input()
b=input()
c=input()
print(a+b+c)
print(int(a)+int(b)+int(c))
100-бет. уй иши
a=486
x=486//100=4
486//10=48 y=48%10=8
z=486%10=6
b=4*100+6=406
print(b) 406
>>> 14.141-5.45
8.690999999999999
>>> 25.14+15.458
40.598
>>> 85/17
5.0
>>> 85//17
5
>>> 16.5//4
4.0
>>> 4.0%7
4.0
>>> 19.5//4%7
4.0
>>> 3*7//2%7
3
>>> 14.141-5.45
8.690999999999999
>>> 128.5%10
8.5
>>> 856/177
4.836158192090395
>>> round(856/177)
5
>>> str(40)
'40'
>>> str(int(25.14+15.458))
'40'
>>>
101-бет
4-топ
Ә
a=2.5
x=4
b=5
c=3.5
d=2
z=int((a*x-b)*x+c)*x-d
print(z)
102-bet, 5-top
k1,n1=map(int,input().split())
k2,n2=map(int,input().split())
k3,n3=map(int,input().split())
k4,n4=map(int,input().split())
k=k1+k2+k3+k4
n=n1+n2+n3+n4
print(k,':',n)
#7 - top k>p>n
s,k,p,n=map(int,input().split())
a=s//k
s=s%k
a=a+s//p
s=s%p
a=a+s//n
print(a)
# 9-top
a,b,c=map(int,input().split())
t=a+b+c
print(t)
#10-top
v1,v2,t=map(int,input().split())
s=abs(v2-v1)*t
print(s)
v1,v2,s=map(int,input().split())
t=s/abs(v1-v2)
print(t)
#v2>v1 v2-v1=s/t
t,v1,s=map(int,input().split())
v2=s//t+v1
print(v2)
'''
#v2>v1 v2-v1=s/t
t,v2,s=map(int,input().split())
v1=abs(v2-s/t)
print(v1)
7-синф
129-бет
f1=open("in.txt","r")
f2=open("out.txt","a")
a=f1.readline() # a='10'
b=f1.readline() # b='20'
a=int(a) # a=10
b=int(b) # b=20
s=a+b # s=10+20=30
s=str(s) # s='30'
f2.write(s)
f2.write('\n')
f1.close()
f2.close()
a=int(input())
b=int(input())
s=a+b
print(s)
n=int(input())
if n>0:
print(f'{n} musbat son')
elif n==0:
print(0)
else:
print(f'{n} manfiy son')
n=int(input())
if n%2==0:
print(f'{n} juft son')
else:
print(f'{n} toq son')
n=int(input())
if n%3==0:
print(f"{n} 3-ga bo'linadi")
else:
print(f"{n} 3-ga bo'linmaydi")
a=int(input())
b=int(input())
if a>b:
m=a
else:
m=b
print(b)
'''
135-bet, 9-top
a=int(input())
b=int(input())
if a>b:
print(a)
else:
print(b)
11-топ
if n%3==0:
print(f"{n} 3-ga bo'linadi")
else:
print(f"{n} 3-ga bo'linmaydi")
n=int(input())
if n%5==0:
print(f"{n} 5-ga karrali")
else:
print(f"{n} 5-ga karrali emas")
#13-top
a=int(input())
b=int(input())
if a>b:
a=a-b
else:
a=a+b
print(a,b)
# abs
x=int(input())
if x>=0:
y=x
else:
y=-x
print(y)
14-top
x=int(input())
if x>0:
y=x**2
else:
y=-x
print(y)
15-топ
a=int(input())
b=int(input())
c=int(input())
if (a+b>c) and (a+c>b) and (b+c>a):
print('YES')
else:
print('NO')
#16-top
n=int(input())
d1=n%1000//100
d2=n%100//10
d3=n%10//1
s=d1+d2+d3
b=n/7
if s>b:
print(f"{s}>{b} yig'indi katta")
else:
print(f"{b}>{s} bo'linma katta")
'''
#17-top 2)
n=int(input())
d1=n%1000//100
d2=n%100//10
d3=n%10//1
if d1>d3:
print("1-raqam katta")
elif d1==d2:
print('1 va 2-raqamlar teng')
else:
print('2-raqam katta')
#17-top 1)
n=int(input())
d1=n%1000//100
d2=n%100//10
d3=n%10//1
if d1>d3:
print("1-raqam katta")
elif d1==d3:
print('1 va 3-raqamlar teng')
else:
print('3-raqam katta')
# parol
parol='student'
s=input('parolni kiriting:')
if s==parol:
print('Welcome')
else:
print('Error')
138-бет
n=int(input('yoshingizni kiriting'))
if n>=2 and n<5:
print('multfilm')
elif n>=5 and n<8:
print("o'yin")
else:
print('robototexnika')
140-бет
print("Nuqtaning koordinatalarini kiriting. x va y 0 ga teng emas")
x,y=map(int,input().split())
if x>0:
if y>0:
print(1)
else:
print(4)
else:
if y>0:
print(2)
else:
print(3)
2-усул
print("Nuqtaning koordinatalarini kiriting. x va y 0 ga teng emas")
x,y=map(int,input().split())
if x>0
print(1)
elif x<0
print(2)
elif x<0>y:
print(3)
else:
print(4)
[12:53, 13.06.2022] +7 747 223 5788: x=int(input())
if x>1:
y=x**2/(2*x+1)
elif x<-2:
y=-3*x+5
else:
y=x
print(y)
10-топ
n=int(input())
if n>0:
print(1)
else:
print(0)
11-топ
a,b,c=map(int,input().split())
if a==b==c:
print(3)
elif a==b or b==c or a==c:
print(2)
else:
print(0)
a,b,c=map(int,input().split())
if a==b:
if b==c:
print(3)
elif a==b or b==c or a==c:
print(2)
else:
print(0)
12-топ
a=int(input())
b=int(input())
c=int(input())
if (a+b>c):
if (a+c>b):
if (b+c>a):
print('YES')
else:
print('NO')
''
a=int(input())
b=int(input())
c=int(input())
if (a+b>c) and (a+c>b) and (b+c>a):
print('YES')
else:
print('NO')
144-бет 1 топ
n=int(input())
if n%2==0:
print(n+2)
else:
print(n+1)
# 144-bet, 2-top
n=int(input())
if n%4==0 and n%100!=0 or n%400==0:
print('YES')
else:
print('NO')
'''
1900 28
1901 28
1902 28
1903 28
1904 29
1908 29
1912 29
...
1996 29
1997 28
1998 28
1999 28
2000 29
2020 29
2021 28
2022 28
2023 28
2024 29
...
2100 28
...
2200 28
2300 28
2400 29
!= teng emas
# 3-top
x=int(input())
if x<0:
y=x**2
elif x>=4:
y=4
else:
y=x
print(y)
4-топширик
1-усул
a,b,c=map(int,input().split()) # 1 5 10
maximum=a # mx=1
if b>maximum: # 5>1
maximum=b # mx=5
if c>maximum: # 10>5
maximum=c # mx=10
minimum=a # mn=1
if b
minimum=b # mn=1
if c
minimum=c # mn=1
med=a+b+c-maximum-minimum # medium-o'rtacha
print(f"max={maximum}, min={minimum}, o'rtacha={med}")
[09:32, 14.06.2022] +7 747 223 5788: 1 2 3
max=3, min=1, o'rtacha=2
>>>
12 12 13
max=13, min=12, o'rtacha=12
>>>
12 12 12
max=12, min=12, o'rtacha=12
>>>
a,b,c=map(int,input().split()) # 1 5 10
maximum=max(a,b,c)
minimum=min(a,b,c)
med=a+b+c-maximum-minimum # medium-o'rtacha
print(f"max={maximum}, min={minimum}, o'rtacha={med}")
2-усул????
# 5-top
n=int(input())
d1=n%10000//1000
d2=n%1000//100
d3=n%100//10
d4=n%10//1
print(d1,d2,d3,d4)
if d1==d4 and d2==d3:
print('simmetrik')
else:
print('simmetrik emas')
# 5-top 2-usul
n=input()
n=n.rjust(4,'0') # rjust r-right o'ng just-tekislash o'ng tomonga tekislash
a=n[::-1]
print(n,a)
if a==n:
print('simmetrik')
else:
print('simmetrik emas')
150-бет
6-топ
>>> x=0
>>> y=-20
>>> (x
False
>>>
# 7-top
x=int(input())
if x-2==0: # x==2
print("0 ga bo'lish mumkin emas")
else:
y=(x+3)/(x-2)
print(y)
# 7-top 2-usul
x=int(input())
if x!=2: # x!=2
y=(x+3)/(x-2)
print(y)
else:
print("0 ga bo'lish mumkin emas")
'''
# 7-top
x=int(input())
if x-2==0: # x==2
print("0 ga bo'lish mumkin emas")
else:
y=(x+3)/(x-2)
print(y)
'''
'''
x=int(input())
if 5*x*x==0: # x==0
print("0 ga bo'lish mumkin emas")
else:
y=3*(x+1)/(5*x**2)
print(y)
'''
'''
x=int(input())
if 3*x+18==0: # x==-6
print("0 ga bo'lish mumkin emas")
else:
y=2*x**2/(3*x+18)
print(y)
'''
151-бет
10-топ
n=int(input())
if 0<=n<40:
print(2)
elif 40<=n<=64:
print(3)
elif 65<=n<=84:
print(4)
elif 85<=n<=100:
print(5)
else:
print('100 dan ortmaydigan son kiriting')
151-153-бет
a=1
b=2
c=-3
D=b*2-4*a*c=22-4*1(-3)=4+12=16
D>0
x1=(-b+sqrt(D))/(2*a)=(-2+4)/(2*1)=2/2=1.0
x2=(-b-sqrt(D))/(2*a)=(-2-4)/(2*1)=-6/2=-3.0
a=1
b=6
c=9
D=6**2-4*1*9=36-36=0
x=-b/(2*a)=-6/(2*1)=-3.0
a=1
b=2
c=17
D=2**2-4*1*17=4-68=-64<0
echimi yo'q
#156-bet
# 1-top
'''
print(5,type(5))
print('5',type('5'))
print(5.4,type(5.4))
print(5>4,type(5>4))
a=5
s="5"
c=5.4
d=5>4
print(d,type(d))
'''
a=5
b=6
c=True
if a
print("True")
#156-bet 2-top
print(25/10)
print(25//10)
print(30/10,type(30/10))
print(30//10,type(30//10))
#156-bet 3-top
print(divmod(20,6))
(3, 2)
#156-bet
# 6-top
n=int(input())
if n<=0:
print("nomanfiy son kiriting")
print("v-versta, s-sajen, a-arshin, w-vershok")
a=input("o'lchov birlikni kiriting: ")
if a=='v':
print(f"{n} versta={500*n} sajen")
elif a=='s':
print(F'{n} sajen={3*n} arshin')
elif a=='a':
print(f'{n} arshin={16*n} vershok')
elif a=='w':
print(f'{n} vershok={4.45*n} cm')
else:
print("v,s,a,w harflarini kiriting")
# 157-bet 9-top
if x>y:
if y>z:
print(x,y,z) #x>y>z
else:
if x>z: #x>y z>y x>z>y
print(x,z,y)
else:
print(z,x,y)
else:
if x>z:
print(y,x,z)
else:
if y>z:
print(y,z,x)
else:
print(z,y,x)
x,y,z=map(int,input().split()) # 1 5 10
maximum=max(x,y,z)
minimum=min(x,y,z)
med=x+y+z-maximum-minimum # medium-o'rtacha
print(maximum, med, minimum)
10-top
n=int(input())
if n==1:
print('ponedelnik')
elif n==2:
print('vtornik')
elif n==3:
print('sreda')
elif n==4:
print('chetverg')
elif n==5:
print('pyatnitsya')
elif n==6:
print('subbota')
elif n==7:
print("voskresenye")
else:
print("hafta kuni yo'q")
11-njg
n=int(input("chipta bahosini kiriting "))
if 700
print("faqat kinoga bilet sotib olasiz")
elif 0<=n<=700:
print("kinoga bilet va ichimlik sotib olasiz")
elif n>1000:
print("keyingi safar kirasiz")
else:
print("chipta bahosi manfiy bo'lmaydi")
158-bet
F1=open('in2.txt', 'r')
F2=open('out.txt', 'w')
n=F1.readline()
n=int(n)
if n%4==0 and n%100!=0 or n%400==0: # != teng emas
F2.write('YES')
else:
F2.write('NO')
F1.close()
F2.close()
F1=open('in2.txt', 'r')
F2=open('out2.txt', 'w')
n=F1.readline()
n=int(n)
if n%2==0:
F2.write('juft')
else:
F2.write('toq')
F1.close()
F2.close()
a,b,c=map(int,input().split())
if a%2==0 and b%2==0 and c%2==0 or a%2==1 and b%2==1 and c%2==1:
print('NO')
else:
print('YES')
'''
2*2*2=8
t t t
t t j +
t j t +
j t t +
j j t +
j t j +
t j j +
j j j
'''
x=23
if x>10:
num=0
else:
num=11
# num=0 if x>10 else 11 - тернарный оператор - if операторининг кискачаси
name="John"
print('Hi, %s' %name) # %s - string
a=123
print("kiritilgan son= %d" %a) #d - decimal 10 li tizimdagi son
a=12
print("kiritilgan son= %04d" %a)
a=int(input('tovar narxini kiriting'))
b=int(input('tovar miqdorini kiriting'))
s=a*b
if s>5000:
s=s*0.9
print(int(s))
183-бет. 7-мисол юкоридаги
8-мисол
#183-bet 8-misol
x=float(input())
if x>=4:
print(x**2+4*x)
elif x<2 and x+1!=0: # x!=-1
print(3*x/(x+1))
elif x<2 and x+1==0:
print("0 ga bo'lish mumkin emas")
else:
print((x-1.5)**0.5)
#184-bet 9-misol
x=int(input())
y=int(input())
z=int(input())
if x
if x
print(x)
else: # z
print(z)
else: # y
if y
print(y)
else: # z
print(z)
#2-usul
x=int(input())
y=int(input())
z=int(input())
minimum=x
if y
minimum=y
if z
minimum=z
print(minimum)
4-usul
print(min(list(map(int,input().split()))))
'''
'''
print(sum(list(map(int,input().split()))))
'''
print(max(list(map(int,input().split()))))
3-usul
x=int(input())
y=int(input())
z=int(input())
print(min(x,y,z))
'''
#184-bet, 10-misol
x1,y1=map(int,input().split())
x2,y2=map(int,input().split())
if (x1+y1+x2+y2)%2==0:
print('rangi bir xil')
else:
print('rangi ikki xil')
'''
#11-misol 3 sondan o'rtachasini topish
x=int(input())
y=int(input())
z=int(input())
if x<=y<=z or z<=y<=x:
print(y)
else:
if x<=z<=y or y<=z<=x:
print(z)
else:
print(x)
'''
'''
x=int(input())
y=int(input())
z=int(input())
if x<=y<=z or z<=y<=x:
print(y)
elif x<=z<=y or y<=z<=x:
print(z)
else:
print(x)
'''
x=int(input())
y=int(input())
z=int(input())
print(x+y+z-max(x,y,z)-min(x,y,z))
#188-bet
a=int(input())
b=int(input())
if a>b:
a=2*a
else:
a=2*a
b=2*b
print('a=',a)
print('b=',b)
#190-bet 7-misol
a=int(input())
b=int(input())
c=int(input())
if a*b*c<100:
a=5*a
b=5*b
c=5*c
print(f'a={a}, b={b}, c={c}')
# 190-bet 8-misol
a=int(input())
b=int(input())
if a>=10 and a<=13 and b>50:
print('qabullandi')
else:
print('qabullanmadi')
#192-bet 9-misol
x=int(input())
if x<=3:
fx=x**2+2*x+9
else:
fx=1/(x**3+6)
print(fx)
#192-bet 10-top
n=5
s=0
print('1. // operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="A":
s=s+1
print('2. % operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="B":
s=s+1
print('3. % operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="B":
s=s+1
print('4. % operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="B":
s=s+1
print('5. % operatorining vazifasi')
print("A. butun bo'lish")
print("B. qoldiqni topish")
j=input()
if j=="B":
s=s+1
if s>=0.85*n:
print("a'lo")
elif 0.65*n<=s<0.85*n:
print("yaxshi")
elif 0.4*n<=s<0.65*n:
print("qoniqarli")
else:
print("qayta topshiring")
#194-bet 3-top
print("3 botir ertagi")
print("chap tomon-c")
print("o'ng tomon-o")
print("to'g'ri-t")
s=input()
if s=='c':
print("otingni yo'qotasan")
elif s=='o':
print("hayotingni yo'qotasan")
elif s=='t':
print("baxt topasan")
else:
print("c,o,t harflaridan birini tanlang")
#195-bet 5-top
age=int(input())
if 10<=age<=13:
print("10-13 yoshli o'quvchi" )
#195-bet 7-top
a,b,c=map(int,input().split())
maximum=max(a,b,c)
minimum=min(a,b,c)
medium=a+b+c-maximum-minimum
print(maximum,medium,minimum)
7-sinf Kadirkulov 120-bet, 2-top
v,s,t=map(int,input().split())
if s<=v*t:
print("ia")
else:
print("joq")
7-sinf Kadirkulov 120-bet, 3-top
a,b,c,t=map(int,input().split())
if a
print("ia")
else:
print("joq")
#7-sinf Kadirkulov 124-bet, 3-top
p,k,z=map(int,input().split())
if p>0:
print(p**3)
elif p<0:
print(p+k)
else:
print(p-z)
a=int(input())
b=int(input())
if a%2==1 and b%2==1: # (a*b)%2==1
print('ikkalasi toq')
else:
print('juft son bor')
'''
'''
#7-sinf 169-bet 11-topshiriq
a,b,x,y,z=map(int,input().split())
if a>=x and b>=y:
print("o'tadi")
elif a>=y and b>=x:
print("o'tadi")
elif a>=x and b>=z:
print("o'tadi")
elif a>=z and b>=x:
print("o'tadi")
elif a>=y and b>=z:
print("o'tadi")
elif a>=z and b>=y:
print("o'tadi")
else:
print("o'tmaydi")
'''
'''
#2-usul
#7-sinf 169-bet 11-topshiriq
a,b,x,y,z=map(int,input().split())
mx=max(x,y,z)
mn=min(x,y,z)
med=x+y+z-mx-mn
mxd=max(a,b)
mnd=min(a,b)
if mnd>=mn and mxd>=med:
print("o'tadi")
else:
print("o'tmaydi")
'''
'''
**** 8-sinf ******
while
'''
'''
1-10 sonlarni ustun shaklida shiqarish
i=1
while i<=10:
print(i)
i=i+1
'''
'''
1-10 sonlarning kvadratlarini ustun shaklida shiqarish
i=1
while i<=10:
print(f"{i}*2={i*2}")
i=i+1
'''
'''
#1-10 sonlarni bir qatorga shiqarish
i=1
while i<=10:
print(i,end=' ')
i=i+1
'''
# 1-10 gacha oraliqdagi toq sonlarni bir qatorga chiqaring 1 3 5 7 9
i=1
while i<=10:
print(i,end=' ')
i=i+2
'''
'''
# 1-10 gacha oraliqdagi juft sonlarni bir qatorga chiqaring 2 4 6 8 10
i=2
while i<=10:
print(i,end=' ')
i=i+2
'''
i=1
while i<=10:
if i%2==1:
print(i,end=' ')
i=i+1
'''
i=1
while i<=10:
if i%2==0:
print(i,end=' ')
i=i+1
# 105-bet 1masalan 100=2*2*5*5 100: 1 2 4 5 10 20 25 50 100 10=sqrt(100)
# n=47 1 2 3 5 sqrt(47)
n=int(input('n='))
i=2
while i<=n//2:
while not n%i:
print(i, end=' ')
n=n//i
i=i+1
'''
# ****** FOR *****
# for i:=1 to n do step 2 -- Pascal da
#for i in range(a,b,s) a-boshi, b-oxiri, s-qadam
'''
for i in range(21):
print(i,end=' ')
'''
'''
for i in range(10,21):
print(i,end=' ')
'''
'''
for i in range(10,21,2):
print(i,end=' ')
'''
'''
for i in range(20,9,-1):
print(i,end=' ')
'''
'''
for i in range(20,-1,-1):
print(i,end=' ')
'''
'''
#1+2+3+4+5+6+7+8+9+10=55 1+2+3+..+98+99+100=(1+100)+(2+99)+(3+98)+...=101*50=5050
n=int(input())
s=0
for i in range(1,n+1):
if i==1:
print(i,end='')
else:
print(f"+{i}",end='')
s+=i
print(f'={s}')
'''
'''
#109-bet karra jadvali
n=int(input())
for i in range(1,n+1):
for j in range(1,n+1):
print(f"{i}x{j}={i*j}")
print()
'''
103-bet
8-top
i=0
while i<5:
print(i)
i=i+1
103-bet
8-top
i=0
while i<5:
print(i)
i=i+1
104-bet
10-top
0 1 1 2 3 5 8 13 21 34 55 89 ... Fibonachchi sonlari f1=0, f2=1 f(n)=f(n-1)+f(n-2)
f1=0
f2=1
print(f1)
print(f2)
n=10
i=0
while i
f_s=f1+f2
print(f_s)
f1=f2
f2=f_s
i=i+1
11-misol
n=int(input())
i=1
while i<=n:
if n%i==0:
print(i,end=' ')
sonning tub yoki murakkabligini aniqlash
2 3 5 7 11 13 17 19-tub sonlar
faqat ikkita bo'luvchisi bo'lsa, tub son
juft tub son faqat 2 soni
bo'luvchilari soni 2 dan ortiq bo'lsa, murakkab son bo'ladi
murakkab sonlar 4 6 8 9 10 12 14 15 16 18 20
1 soni tub ham, murakkab ham emas
n=int(input())
count=0
i=1
while i<=n:
if n%i==0:
count+=1
if count==2:
print(f'{n} tub son')
elif count>2:
print(f'{n} murakkab son')
else:
print('1 soni tub ham emas, murakkab ham emas')
'''
110-bet 6-misol
0!=1 -- ta'rif bo'yicha
1!=1
2!=1*2=2
3!=1*2*3=6
4!=1*2*3*4=24
5!=1*2*3*4*5=120 n!-- n factorial
'''
n=int(input())
f=1
for i in range(1,n+1):
f=f*i
print(f"{n}!={f}")
#111-bet 7-misol x+y+z=3 x,y,z--natural x,y,z=1
#x+y+z=4 2,1,1 1,2,1 1,1,2
#15x+20y+30z=720
for x in range(1,50):
for y in range(1,40):
for z in range(1,30):
if 15*x+20*y+30*z==720:
print(f"x={x}, y={y}, z={z}")
111-bet 8-misol 4)
for i in range(30,40,-1):
print(i)
print("tamom")
for i in range(16,66+2,3): # for i in range(16,68,3)
print(i)
5) tepadagi
# 111-bet 9-misol
n=10
for i in range(n):
a=int(input("son kiriting "))
if a%2==0 and a>0:
print(f"siz kiritgan son {a} - juft va musbat")
'''
#111-bet 1-soni 1 s=0
2 soni 1 s=1
3 soni 1 s=1
4 soni 1 2 s=1+2=3
5 soni s=1
6 soni 1 2 3 6 s=1+2+3=6 - ajoyib son
8 soni 1 2 4 8 s=1+2+4=7 - ajoyib son emas
28 soni 1 2 4 7 14 28 s=1+2+4+7+14
6 ajoyib son
28 ajoyib son
496 ajoyib son
8128 ajoyib son
'''
for i in range(1,10001):
s=0
for j in range(1,i):
if i%j==0:
s=s+j
if s==i:
print(f'{i} ajoyib son')
#112-bet
#1-misol i - iteration 2+4+6+..42 44 46 48 50 +86+88+90=92*22+46=2070
s=0
for i in range(2,91,2):
s=s+i
print(s)
#112-bet
#2-misol i - iteration 1+3+...+89=2070-45=2025
s=0
for i in range(1,90,2):
s=s+i
print(s)
#112-bet
#4-misol i - iteration
s=0
for i in range(10,101):
s=s+i
print(s)
#112-bet
#5-misol p -odatda ko'paytirish
p=1
for i in range(10,101):
p=p*i
print(p)
257182031095525112107857249934597388918419224714455526533820998388496472644482792132224051962512451185663850090463028434334174412800000000000000000000000
[12:20, 17.06.2022] +7 747 223 5788: p=13_000_000
for i in range(5): #p=10000*12foiz**6oy - murakkab foiz 15816487
p=p*(1+4/100)
print(int(p))
#112-bet
#7-topshiriq
p=10
kun=1
while p<=20:
p=p*((100+10)/100)
kun=kun+1
print(f"{kun}-kuni {round(p,3)} km yuradi")
#7-topshiriq
s=0
p=10
kun=1
while p<=20:
p=p*((100+10)/100)
kun=kun+1
s=s+p
print(f"{kun}-kuni {round(p,3)} km yuradi")
print(f"{kun} kunda {round(s,3)} km yuradi") # 10+11+12.1+...+121.436=125.795
#9-kuni 21.436 km yuradi
#9 kunda 125.795 km yuradi
break operatorining qo'llanishi
n=int(input())
i=2
while i
if n%i==0:
print(F"{n}-murakkab son")
print('i=',i)
break
i=i+1
360000001
360000001-murakkab son
i= 3023
a=1
while a<10:
a=a+1
if a==5:
break # siklni to'xtatish
print(a)
print("tamom")
'''
a=1
while a<10:
a=a+1
if a==5:
break # siklni to'xtatish
print(a)
print("tamom")
'''
'''
2
3
4
'''
'''
a=1
while a<10:
a=a+1
if a==5:
continue # keyingi qadamga o'tish
print(a)
print("tamom")
'''
'''
2
3
4
6
7
8
9
10
tamom
'''
while True: # cheksiz sikl
print("a")
'''
while 1<2: # cheksiz sikl
print(5)
print("almashtirishni yakunlash uchun 0 ni bosing")
while True:
a=int(input("tenge miqdorini kiriting "))
if a==0:
break
d=int(a/420)
print(f"{a} tenge {d} dollar bo'ladi")
print("tamom")
114-bet 2-misol
#114-bet
#number=0
for number in range(15):
if number==7:
break
print("nomer"+str(number))
print('sikldan chiqish')
'''
'''
for number in range(25):
if number==7:
continue
print("nomer"+str(number))
print('sikldan chiqish')
'''
[09:10, 20.06.2022] +7 747 223 5788: #115-bet
#3-topshiriq
for i in range(100):
a=int(input())
if a<0:
print("BREAK")
break
print(a)
#2-usul
a=int(input())
while a>=0:
print(a)
a=int(input())
#4-topshiriq
i=0
while i<10:
if i==3:
i=i+1
continue
print(i)
if i==5:
break
i=i+1
'''
0<10
0!=3
>>>0
0!=5
i=0+1=1
1<10
1!=3
>>>1
1!=5
i=1+1=2
2<10
2!=3
>>>2
2!=5
i=2+1=3
3<10
3==3
i=3+1=4
>>>4
4<10
>>>5
#break
0
1
2
4
5
#5-topshiriq
mn=1002
for i in range(10):
a=int(input())
if a%2==0 and a%3!=0:
mn=min(mn,a)
if mn==1002:
print("kamida bitta juft son kiriting")
else:
print(mn)
1
3
5
7
9
11
13
15
17
19
kamida bitta juft son kiriting
2
1
4
5
7
0
7
9
8
10
javob= 2
from math import inf # inf infinity - cheksizlik
mn=inf
print(mn>10*1000)
True
from math import inf # inf infinity - cheksizlik
mn=inf
print(mn>10*1000)
# -inf - cheksizlik -- juda ham kichik son
: #6-topshiriq
n=int(input())
s=0
for i in range(n):
a=int(input())
s=s+a/n
print(s)
10
1
2
3
4
5
6
7
8
9
10
5.5
# 116-bet
#7-topshiriq
a=0
n=10
for i in range(1,n+1,2):
a=a+1
if a==5:
continue
print(a)
if a==7:
break
'''
i=1 a=1 >>>1
i=3 a=2 >>>2
i=5 a=3 >>>3
i=7 a=4 >>>4
i=9 a=5
i=11
1
2
3
4
# 116-117-betlar
i=1
while i<5:
j=1
while j<5:
print(i,'*',j,'=',i*j)
j=j+1
i=i+1
'''
for i in range(1,5):
for j in range(1,5):
print(i,'*',j,'=',i*j)
1 * 1 = 1
1 * 2 = 2
1 * 3 = 3
1 * 4 = 4
2 * 1 = 2
2 * 2 = 4
2 * 3 = 6
2 * 4 = 8
3 * 1 = 3
3 * 2 = 6
3 * 3 = 9
3 * 4 = 12
4 * 1 = 4
4 * 2 = 8
4 * 3 = 12
# 118-bet
a=0
while a<10:
a=a+1
if a==5:
continue
print(a)
1
2
3
4
6
7
8
9
10
>>>
for i in range(10):
if i%3==0:
continue
print(i)
1
2
4
5
7
8
>>>
0 узидан бошка хар кандай сонга булинади
'''
119-bet
5-topshiriq
a=0
while a!=7:
a=a+1
if a==5:
continue
print(a)
'''
'''
1
2
3
4
6
7
'''
#119-bet
for num in range(2,10):
if num%2==0:
print('juft son',num)
continue
print('toq son',num)
'''
for num in range(2,10):
if num%2==0:
print('juft son',num)
else:
print('toq son',num)
juft son 2
toq son 3
juft son 4
toq son 5
juft son 6
toq son 7
juft son 8
toq son 9
>>
# 120-bet
# 7-topshiriq
for i in range(10):
print(i)
if i<5:
print('uzilish')
: 0
uzilish
1
uzilish
2
uzilish
3
uzilish
4
uzilish
5
6
7
8
9
2-усул
for i in range(10):
print(i)
if i>=5:
continue
print('uzilish')
# cheksiz sikl
while True:
a=int(input())
print(a*a)
if a==0:
break
'''
while 1<2:
a=int(input())
print(a*a)
if a==0:
break
5
25
6
36
7
49
10
100
11
121
12
144
13
169
13
169
0
0
# 121-bet
i=0
while i<7:
print(i)
i=i+1
else:
print('chiqish')
'''
i=0
while i<7:
print(i)
i=i+1
print('chiqish')
0
1
2
3
4
5
6
chiqish
i=0
while i<7:
if i==5:
break
else:
print(i)
i=i+1
else:
print('chiqish')
'''
'''
break ishga qo'shilsa, else bajarilmaydi
0
1
2
3
4
'''
# else qatnashsa, For ham while kabi bo'ladi
n=int(input())
i=2
while i
if n%i==0:
print('tub son emas')
print(i)
break
i=i+1
else:
print('tub son')
'''
# 123-124 betlar
count=3
while count<8:
print(count,'8 dan kichik')
count=count+1
else:
print(count,'8 dan kichik emas')
3 8 dan kichik
4 8 dan kichik
5 8 dan kichik
6 8 dan kichik
7 8 dan kichik
8 8 dan kichik emas
'''
count=3
while count<8:
print(count,'8 dan kichik')
count=count+1
print(count,'8 dan kichik emas')
'''
# 123-bet
# 7-topshiriq
i=1
while i<=5:
print(i**3)
i=i+1
else:
print('sikl tugadi, i =',i)
1
8
27
64
125
sikl tugadi, i = 6
>>>
'''
# 123-bet
# 7-topshiriq
i=1
while i<=5:
print(i**3)
i=i+1
print('sikl tugadi, i =',i)
#124-bet
#8-topshiriq
a=int(input())
while True:
if a%2==0:
print("juft son",a)
break
a=int(input())
else:
print('juft son uchramadi')
'''
5
7
13
21
101
2
juft son 2
>>>
a=int(input())
for i in range(10):
if a%2==0:
print("juft son",a)
break
a=int(input())
else:
print('juft son uchramadi')
1
3
5
7
9
11
13
15
17
19
21
juft son uchramadi
#124-bet
#9-topshiriq
n=int(input())
for d in range(2,n):
if n%d==0:
print('murakkab son')
break
else:
print('tub son')
'''
'''
n=int(input())
for d in range(2,n):
if n%d==0:
print('murakkab son')
break
else:
print('tub son')
35
tub son
tub son
tub son
murakkab son
xato
'''
'''
#125-bet
# 10-misol
n=int(input())
for i in range(n):
a=int(input())
if a>0:
print(f"{a}-musbat son")
elif a<0:
print(f"{a}-manfiy son")
else:
break
'''
'''
10
1
1-musbat son
2
2-musbat son
3
3-musbat son
-8
-8-manfiy son
-9
-9-manfiy son
0
'''
'''
10
1
1-musbat son
2
2-musbat son
3
3-musbat son
4
4-musbat son
5
5-musbat son
-5
-5-manfiy son
-4
-4-manfiy son
-3
-3-manfiy son
-2
-2-manfiy son
-1
-1-manfiy son
>>>
'''
'''
#125-bet
# 10-misol
n=int(input())
for i in range(n):
a=int(input())
if a>0:
print(f"{a}-musbat son")
elif a<0:
print(f"{a}-manfiy son")
#else:
'''
5
1
1-musbat son
2
2-musbat son
3
3-musbat son
-40
-40-manfiy son
-5
-5-manfiy son
5
1
1-musbat son
2
2-musbat son
0
-3
-3-manfiy son
-5
-5-manfiy son
>>>
'''
'''
#125-bet
# 10-misol
n=int(input())
for i in range(n):
a=int(input())
if a>0:
print(f"{a}-musbat son")
elif a<0:
print(f"{a}-manfiy son")
else:
print("0 soni manfiy ham emas, musbat ham emas")
1
0
0 soni manfiy ham emas, musbat ham emas
'''
125-bet 11-topshiriq
for n in range(2,10):
for x in range(2,n):
if n%x==0:
print(n,'=',x,'*',n//x)
break
else:
print(f"{n}-tub son")
2-tub son
3-tub son
4 = 2 * 2
5-tub son
6 = 2 * 3
7-tub son
8 = 2 * 4
9 = 3 * 3
>>>
'''
>>> ord("A")
65
>>> ord("B")
66
>>> ord('a')
97
>>> ord('Z')
90
>>> chr(91)
'['
>>> chr(92)
'\\'
>>> chr(65)
'A'
>>>
# 125-bet
# chr() funksiyasi ASCII jadvalida berilgan kod bo'yicha simvolni chiqaradi
# ord() simvolning ASCII jadvalidagi kodini chiqaradi
for i in range(32,128):
print(chr(i),end=' ')
if (i-1)%10==0:
print()
! " # $ % & ' ( )
* + , - . / 0 1 2 3
4 5 6 7 8 9 : ; < =
> ? @ 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 [
\ ] ^ _ ` 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 { | }
>>>
#127-bet
#123>>>321
#120>>021
s=input()
print(s[::-1])
123
321
>>>
120
021
>>>
123456789
987654321
'''
#127-bet
#123>>>321
#120>>021
s=input()
print(s[::-1])
'''
'''
n=int(input())
d1=n%1000//100
d2=n%100//10
d3=n%10//1
#d1d2d3
#d3d2d1
print(d3,d2,d1,sep='')
'''
'''
n=int(input())
d1=n%1000//100
d2=n%100//10
d3=n%10//1
#d1d2d3
#d3d2d1
print(d3*100+d2*10+d1)
'''
123
321
>>>
321
>>>
120
21
>>>
102
201
>>>
100
1
>>>
# 131-bet
s=0
for i in range(0,19+1):
s=s+i
print(s)
# 1+2+3+...+18+19+20=21*10-20=190
0
1
3
6
10
15
21
28
36
45
55
66
78
91
105
120
136
153
171
190
>>>
190
>>>
5-topshiriq yuqorida
'''
# 6-topshiriq
for i in range(6):
print(i,2**i)
'''
# 7-topshiriq
print('x y')
x=-2
while x<=2:
y=-2.4*x**2+5*x-3
print(x,' ',round(y,2))
x=x+0.5
'''
# 133-bet
z=5.5
i=1
z=7.75
i=2
z=8.875
i=3
z=9.4375
i=4
'''
x=int(input())
z=1
i=0
while i<4:
z=(z+x/2)/2
i=i+1
print(int(z))
20
9.4375
>>>
20
9
>>>
#5-t # 2 4 6 - 3 marta
#6-t # 0 1 2 - 3 marta
#7
for i in range(1,4,-1):
print(i)
bo'sh to'plam
n=100
print("%.2f" %(n))
100.00
n=100
k=0
while n>80:
n=0.99*n # n=n-n/100
k=k+1
print('vazn','%.2f' %(n), 'kun',k)
vazn 99.00 kun 1
vazn 98.01 kun 2
vazn 97.03 kun 3
vazn 96.06 kun 4
vazn 95.10 kun 5
vazn 94.15 kun 6
vazn 93.21 kun 7
vazn 92.27 kun 8
vazn 91.35 kun 9
vazn 90.44 kun 10
vazn 89.53 kun 11
vazn 88.64 kun 12
vazn 87.75 kun 13
vazn 86.87 kun 14
vazn 86.01 kun 15
vazn 85.15 kun 16
vazn 84.29 kun 17
vazn 83.45 kun 18
vazn 82.62 kun 19
vazn 81.79 kun 20
vazn 80.97 kun 21
vazn 80.16 kun 22
vazn 79.36 kun 23
# 144-bet
# 9-misol
s=0
k=10
for i in range(30):
s=s+k
k=1.1*k # 100%+10%=110% 110%/100=1.1
print("%.2f" %(k))
print("%.2f" %s)
11.00
12.10
13.31
14.64
16.11
17.72
19.49
21.44
23.58
25.94
28.53
31.38
34.52
37.97
41.77
45.95
50.54
55.60
61.16
67.27
74.00
81.40
89.54
98.50
108.35
119.18
131.10
144.21
158.63
174.49
1644.94
# 148-bet
k=int(input())
sum=0
i=0
while sum
i=i+1
sum=sum+i
print(sum)
print(i,sum)
# 1+2+3+...+12+13+14=105
# 1+2+3+...+12+13+14=105
# 149-bet
# 9-topshiriq
n=int(input()) # 30 >>> 0 1 4 9 16 25
i=0
while i**2<=n:
print(i**2)
i=i+1
30
0
1
4
9
16
25
>>>
# 149-bet
# 10
n=int(input())
i=2
while i<=n:
if n%i==0:
print(i)
break
i=i+1
2>2>0>
# 149-bet
# 10
n=int(input())
i=2
while i<=n:
if n%i==0:
print(i)
break
i=i+1
'''
'''
n=int(input())
i=2
while i<=n:
if n%i==0:
print(i)
i=i+1
'''
import math
print(dir(math))
['_doc', 'loader', 'name', 'package', 'spec_', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'ceil', 'comb', 'copysign', 'cos', 'cosh', 'degrees', 'dist', 'e', 'erf', 'erfc', 'exp', 'expm1', 'fabs', 'factorial', 'floor', 'fmod', 'frexp', 'fsum', 'gamma', 'gcd', 'hypot', 'inf', 'isclose', 'isfinite', 'isinf', 'isnan', 'isqrt', 'ldexp', 'lgamma', 'log', 'log10', 'log1p', 'log2', 'modf', 'nan', 'perm', 'pi', 'pow', 'prod', 'radians', 'remainder', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'tau', 'trunc']
from math import factorial
s=0
n=int(input())
for i in range(1,n+1):
s=s+factorial(i)
print(s)
2-usul
s=0
n=int(input())
for i in range(1,n+1):
f=1
for j in range(1,i+1):
f=f*j
s=s+f
print(s)
# 156-bet
# 2-topshiriq
n=int(input())
s=0
p=1
# raqamlarni ajratish % bilan // dan foydalanamiz
while n>0:
d=n%10 # oxirgi raqamni oladi
n=n//10 # oxirgi raqamni tashlaydi -- 0 bo'lguncha takrorlanadi
s=s+d
p=p*d
print(s,p)
2-усул
n=input()
s=0
p=1
# raqamlarni ajratish % bilan // dan foydalanamiz
for i in range(len(n)): # len - n so'zning uzunligi
d=int(n[i])
s=s+d
p=p*d
print(f"d={d}, s={s}, p={p}")
print(s,p)
123456
d=1, s=1, p=1
d=2, s=3, p=2
d=3, s=6, p=6
d=4, s=10, p=24
d=5, s=15, p=120
d=6, s=21, p=720
# 3-top
f1=0
f2=1
n=int(input())
if n==1:
print(0)
elif n==2:
print(0,1)
else:
print(0,1,end=' ')
i=3
while i<=n:
fi=f1+f2
print(fi,end=' ')
f1=f2
f2=fi
i=i+1
# 4-top
n=int(input())
i=0
while i**2<=n:
print(i**2,end=' ')
i=i+1
# 2-usul
n=int(input())
for i in range(n):
if i**2<=n:
print(i**2,end=' ')
else:
break
# 5-top
n=int(input())
c1=0
c2=0
for i in range(n):
a=int(input())
if a%2==1:
c1=c1+1
else:
c2=c2+1
print(f'toq sonlar {c1} ta, juft sonlar {c2} ta')
# 6
a,b=map(int,input().split())
for i in range(a,b+1):
print(f'{i}*3={i*3}',end=' ')
1 10
1*3=1 23=8 33=27 43=64 53=125 63=216 73=343 83=512 93=729 10*3=1000
# 6
a,b=map(int,input().split())
i=int(a**(1/3))
if i**3
i=i+1
while i**3<=b:
print(f'{i}*3={i*3}',end=' ')
i=i+1
#1 100
#1 8 27 64
# i*3>=a i>=int(a*(1/3))
# 7
for i in range(256):
print(chr(i),end=' ')
if (i-1)%10==0:
print()
# 8
for t in range(24+1):
n=1
i=3
while i<=t:
i=i+3
n=n*2
print(t,n)
#9
# qo'shish jadvali
for i in range(1,11):
for j in range(1,11):
print(f"{i}+{j}={i+j}")
print()
# ko'paytirish jadvali
for i in range(1,11):
for j in range(1,11):
print(f"{i}*{j}={i*j}")
print()
# 2 - bin
# 8 - oct
# 16 - hex
print(hex(10))
print(hex(1))
print(oct(8))
print(bin(1023))
0xa
0x1
0o10
0b1111111111
# qo'shish jadvali
for i in range(1,17):
for j in range(1,17):
print(f"{hex(i)[2:]}+{hex(j)[2:]}={hex(i+j)[2:]}")
print()
# ko'paytirish jadvali
for i in range(1,17):
for j in range(1,17):
print(f"{hex(i)[2:]}*{hex(j)[2:]}={hex(i*j)[2:]}")
print()
# qo'shish jadvali
for i in range(1,17):
for j in range(1,17):
print(f"{hex(i)}+{hex(j)}={hex(i+j)}")
print()
# ko'paytirish jadvali
for i in range(1,17):
for j in range(1,17):
print(f"{hex(i)}*{hex(j)}={hex(i*j)}")
print()
print(hex(10))
print(type(hex(10)))
s='0xa'
print(s[2:])
# 158-bet
_a=10
print(_a)
'''
# 159
#print(int("123"))
#print(int('python'))
#print(5+'25')
#print(5/0)
#ax=b
#x=b/a
'''
a=int(input())
b=int(input())
x=b/a
print(x)
# 160-161-bet
a=int(input())
b=int(input())
if a
for i in range(a,b+1):
print(i)
else:
for i in range(a,b-1,-1):
print(i)
# 163-bet
sum=0
a=int(input())
while a!=0:
sum=sum+a
a=int(input())
print(sum)
# 1+2+3+4+5+6+7+8+9
2-усул
a=int(input())
sum=a
while a!=0:
a=int(input())
sum=sum+a
print(sum)
# 7
from time import time # time -vaqt
t1=time()
i=0
while i<10:
print(i)
i=i+1
t2=time()
tw=t2-t1
print(tw)
t3=time()
for i in range(0,10):
print(i)
t4=time()
tf=t4-t3
print(tf)
if tw
print('while')
else:
print('for')
# 165-bet
# 4-test
i,n = 0,625 # i=0 n=625
# print(i)
# print(n)
n=125 i=1
n=25 i=2
n=5 i=3
n=1 i=4
n=0 i=5
print("'")
print('\'')
print("'")
print('\'') \' birgalikda bitta apostrof
'''
'''
for j in "privet kak dela!":
print(j,end=' ')
'''
'''
for j in "privet":
if j=='p':
print('topildi')
break
else:
print('topilmadi')
'''
'''
for j in "privet":
if j=='a':
print('topildi')
break
else:
print('topilmadi')
'''
for j in "privet":
if j=='pr':
print('topildi')
break
else:
print('topilmadi')
# 168-bet 13-t
# sonning raqamalrining yig'indisi va ko'paytmasi
n=input()
# n='15'
sum=0
mult=1
for i in n:
sum=sum+int(i)
mult=mult*int(i)
print("yig'indi ",sum)
print("ko'paytma ",mult)
14-топ 168-бет
168-бет 15-т
# 8-sinf
# qadirqulov
# 82-bet
# 1-top
k,n=map(int,input().split())
for i in range(k,n+1):
if i%2==0:
print(i,end=' ')
2-usul
k,n=map(int,input().split())
if k%2==1:
k=k+1
for i in range(k,n+1,2):
print(i,end=' ')
'''
# 3-usul
k,n=map(int,input().split())
k=(k+1)//2*2
for i in range(k,n+1,2):
print(i,end=' ')
'''
n=int(input())
print()
'''
# k=23 (23+1)//2*2=24
# k=24 (24+1)//2*2=24
# 1-usul
n=int(input())
# 90>>>
# 20>>> 11
for i in range(10,n+1):
d1=i%100//10
d2=i%10//1
if d1==d2:
print(i,end=' ')
'''
'''
# 2-usul
n=int(input())
# 90>>>
# 20>>> 11
for i in range(10,n+1):
i=str(i)
if i[0]==i[1]:
print(i,end=' ')
# 3-usul
n=int(input())
for i in range(10,n+1):
if i%11==0:
print(i,end=' ')
# 3-top
n,k=map(int,input().split())
mx=0
count=0
for i in range(1,n+1):
a=int(input())
if a>k:
count=count+1
if a>mx:
mx=a
l=i
print(count)
print(l)
# 85-bet
# tub sonlar
n=int(input())
for i in range(n):
a=int(input())
count=0
for j in range(1,a+1):
if a%j==0:
count=count+1
if count==2:
print(a,end=' ')
# 85-bet
# tub sonlar
n=int(input())
for i in range(n):
a=int(input())
count=0
for j in range(2,round(a**0.5)):
if a%j==0:
count=count+1
if count==0:
print(a,end=' ')
'''
'''
n=72
1 72
2 36
3 24
4 18
6 12
8 9
8<=sqrt(72)
n=37
1 37
2
3
4
5
6
6*6=36
'''
# 86-bet 1-top 1)
for i in range(5):
for j in range(5):
if i==2 and j==2:
print(0,end='')
else:
print(1,end='')
print()
11111
11111
11011
11111
11111
# 86-bet 1-top 2)
for i in range(5):
for j in range(5):
if i%2==0:
print(1,end='')
else:
print(0,end='')
print()
11111
00000
11111
00000
11111
# 86-bet 1-top 3)
for i in range(1,6):
for j in range(5):
print(i,end='')
print()
11111
22222
33333
44444
55555
# 86-bet 1-top 4)
for i in range(5):
for j in range(5):
if i==j:
print(1,end='')
else:
print(0,end='')
print()
10000
01000
00100
00010
00001
'''
# 86-bet 1-top 5)
for i in range(5):
for j in range(5):
if i+j==4:
print(1,end='')
else:
print(0,end='')
print()
'''
'''
0 4 if i+j==4
1 3
2 2
3 1
4 0
'''
array - massiv - elementlari bir tipli. kamchiligi: faqat sonlar
list - tizim - elementlari bir tipda bo'lishi shart emas
array import qilinishi kerak
import math
print(math.factorial(5))
'''
'''
import math
print(math.factorial(5))
'''
'''
from math import factorial
print(factorial(5))
'''
'''
a=[]
print(type(a))
a=[1,2,3]
print(a)
a=['maktab','sinf']
print(a)
a=[5>6, True]
print(a)
a=[1,2,3,'maktab']
print(a)
b=[1,2,3,[4,5,6]]
print(b)
'''
'''
[1, 2, 3]
['maktab', 'sinf']
[False, True]
[1, 2, 3, 'maktab']
[1, 2, 3, [4, 5, 6]]
'''
'''
import array
a=array.array('i',[1,2,3])
print(a)
print(type(a))
array('i', [1, 2, 3])
'''
'''
from array import array
a=array('i',[1,2,3])
print(a)
print(type(a))
array('i', [1, 2, 3])
'''
: >>> a[0:5:2]
[45, 30, -40]
>>> a[2:4]
[30, 20]
>>> a[-1]
-40
>>> a[-5]
45
>>> a[:3]
[45, 25, 30]
>>> a[3:]
[20, -40]
>>>
>>> a=[45,25,30,20-40]
>>> a[0:5:2]
[45, 30]
# 74-bet
'''
from array import array
a=array('i')
print(a)
print(type(a))
n=int(input())
'''
'''
n=int(input())
a=[0]*n
print(a)
print(type(a))
for i in range(n):
a[i]=(input())
print(a)
# floatni intga aylantirmaydi
# intni floatga aylantira oladi
'''
'''
5
[0, 0, 0, 0, 0]
1
5
6
3
2
[1, 5, 6, 3, 2]
'''
'''
from array import array
a=array('f')
print(a)
print(type(a))
n=int(input())
a=[0]*n
print(a)
print(type(a))
for i in range(n):
a[i]=float(input())
print(a)
# floatni intga aylantirmaydi
# intni floatga aylantira oladi
'''
'''
array('f')
5
[0, 0, 0, 0, 0]
1
2
3
4
5.5
[1.0, 2.0, 3.0, 4.0, 5.5]
'''
'''
from array import array
n=int(input())
a=array('f',[0]*n) # !!!!!!!!!!!!!
print(a)
print(type(a))
for i in range(n):
a[i]=float(input())
print(a)
print(type(a))
5
array('f', [0.0, 0.0, 0.0, 0.0, 0.0])
1
2
3.5
6
4
array('f', [1.0, 2.0, 3.5, 6.0, 4.0])
'''
from array import array
a=array('f')
print(a)
print(type(a))
n=int(input()) # list
a=[0]*n
print(a)
print(type(a))
for i in range(n):
a[i]=float(input())
print(a)
# 74- bet amaliy ish
'''
1-usul
from array import array
n=int(input())
a=array('i',[0]*n)
s=0
for i in range(n):
a[i]=int(input())
for i in range(n):
if a[i]>0:
s=s+a[i]
print(s)
'''
'''
2-usul
from array import array
n=int(input())
a=array('i',[0]*n)
s=0
for i in range(n):
a[i]=int(input())
if a[i]>0:
s=s+a[i]
print(s)
'''
# 3-usul
from array import array
n=int(input())
a=array('i',[0]*n)
s=0
for i in range(n):
a[i]=int(input())
s=s+max(a[i],0)
print(s)
# 75-bet 1-topshiriq
from array import array
n=int(input())
a=array('i',[0]*n)
s=0
for i in range(n):
a[i]=int(input())
if a[i]>0:
s=s+1
print(s)
5
1
2
-3
-4
0
2
'''
# 75-bet 2-topshiriq
from array import array
n=int(input('n='))
p=int(input('p='))
a=array('i',[0]*n)
s=0
for i in range(n):
a[i]=int(input(f"a{i}="))
for i in range(n):
if a[i]%p==0:
print(a[i],end=' ')
'''
5
3
7
6
12
-9
1
6 12 -9
'''
n=5
p=10
a0=20
a1=0
a2=-30
a3=25
a4=56
20 0 -30
'''
# 75-bet 2-topshiriq
from array import array
n=int(input('n='))
p=int(input('p='))
a=array('i',[0]*n)
s=0
for i in range(n):
a[i]=int(input(f"a{i}="))
if a[i]%p==0:
print(a[i],end=' ')
n=6
p=5
a0=15
15 a1=20
20 a2=8
a3=56
a4=0
0 a5=-4
n=4
2
2
3
8
16
p=a0=2 a1=a2=8 a3=16
'''
# 3-topshiriq
from array import array
n=int(input('n='))
a=array('i',[0]*n)
for i in range(n):
a[i]=int(input(f"a{i}="))
for i in range(n):
if a[i]!=0:
print(a[i],end=' ')
else:
break
'''
n=10
a0=1
a1=2
a2=3
a3=4
a4=5
a5=6
a6=0
a7=7
a8=8
a9=9
1 2 3 4 5 6
n=5
a0=0
a1=1
a2=2
a3=3
a4=4
'''
# 3-topshiriq 0 dan keyingi elentlari
from array import array
n=int(input('n='))
a=array('i',[0]*n)
f=False # hali 0 uchramadi
for i in range(n):
a[i]=int(input(f"a{i}="))
for i in range(n):
if a[i]==0:
f=True # 0 uchradi
if a[i]!=0 and f==True:
print(a[i])
'''
# 3-topshiriq 0 dan keyingi elementlari
from array import array
n=int(input('n='))
a=array('i',[0]*n)
f=0 # hali 0 uchramadi
for i in range(n):
a[i]=int(input(f"a{i}="))
for i in range(n):
if a[i]==0:
f=1 # 0 uchradi
if a[i]!=0 and f==1:
print(a[i])
'''
# 4-topshiriq
from array import array
c,d=map(int,input().split())
n=int(input('n='))
a=array('i',[0]*n)
for i in range(n):
a[i]=int(input(f"a{i}="))
for i in range(n):
if c<=a[i]<=d:
print(a[i],end=' ')
3 10
n=10
a0=50
a1=5
a2=6
a3=7
a4=8
a5=9
a6=60
a7=2
a8=-1
a9=0
5 6 7 8 9
# 4-topshiriq
from random import randint
from array import array
c=int(input())
d=int(input())
n=int(input('n='))
a=array('i',[0]*n)
for i in range(n):
a[i]=randint(c-10,d+10)
for i in range(n):
if c<=a[i]<=d:
print(a[i],end=' ')
# 5-top
from array import array
n=int(input('n='))
x=int(input('x='))
m=int(input('m='))
a=array('i',[0]*n)
for i in range(n):
a[i]=int(input())
for i in range(n):
if a[i]>x:
a[i]=m
print(a[i],end=' ')
n=10
x=5
m=10
1
2
3
4
5
6
7
8
9
0
1 2 3 4 5 10 10 10 10 0
# 6-top
from array import array
n=int(input('n='))
k=int(input('k='))
a=array('i',[0]*n)
for i in range(n):
a[i]=int(input())
for i in range(n):
if a[i]
a[i]=2*a[i]
print(a[i],end=' ')
n=10
k=6
1
2
3
4
5
6
10
20
30
40
2 4 6 8 10 6 10 20 30 40
# 77-bet
from random import randint
a=[i for i in range(10)]
print(a)
a=[i*i for i in range(10)]
print(a)
a=[randint(1,10) for i in range(20)]
print(a)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
[8, 3, 1, 7, 1, 8, 10, 1, 8, 10, 3, 4, 3, 9, 1, 10, 4, 2, 7, 1]
# 77-bet misol
# 1-usul
n=int(input())
a=[0]*n
for i in range(n):
a[i]=int(input())
for i in range(n): # i--element indeksi
if a[i]%2==0:
print(a[i],end=' ')
10
1
2
3
-50
0
65
78
98
145
12
2 -50 0 78 98 12
'''
'''
# 2-usul
n=int(input())
a=[0]*n
for i in range(n):
a[i]=int(input())
for i in a: # i -- elementning o'zi
if i%2==0:
print(i,end=' ')
'''
'''
# 3-usul randint bilan
from random import randint
n=int(input())
a=[0]*n
for i in range(n):
a[i]=randint(1,100)
print(a[i],end=' ')
print()
for i in range(n): # i--element indeksi
if a[i]%2==0:
print(a[i],end=' ')
'''
[11:30, 23.06.2022] +7 747 223 5788: 20
33 78 9 8 34 30 57 9 61 88 86 78 97 16 28 6 29 16 49 60
78 8 34 30 88 86 78 16 28 6 16 60
# 4-usul
f1=open("input.txt",'r')
f2=open('output.txt',"w")
n=int(f1.readline())
a=[0]*n
t=f1.readline().split()
print(t) # ['1', '2', '3', '4', '5', '6', '7', '8', '10', '9']
for i in range(n):
a[i]=int(t[i])
for i in range(n):
if a[i]%2==0:
f2.write(str(a[i])+' ') # f2.write(str(a[i])+'\n')
f1.close()
f2.close()
'''
'''
5-usul
f1=open("input.txt",'r')
f2=open('output.txt',"w")
n=int(f1.readline())
a=[0]*n
a=list(map(int,f1.readline().split()))
print(a) # ['1', '2', '3', '4', '5', '6', '7', '8', '10', '9']
for i in range(n):
if a[i]%2==0:
f2.write(str(a[i])+' ') # f2.write(str(a[i])+'\n')
f1.close()
f2.close()
'''
# 78-bet amaliy ish
n=int(input())
a=[0]*n
for i in range(n):
a[i]=int(input())
mn=min(a)
s=sum(a)
print("o'rtacha qiymat:",s/n)
print("eng pasti:",mn)
print(s/n-mn,"foiz ko'tarish kerak")
8
80
90
40
65
70
68
60
50
o'rtacha qiymat: 65.375
eng pasti: 40
25.375 foiz ko'tarish kerak
'''
# 79-bet 1-top
n=int(input())
a=[0]*n # list
count=0
for i in range(n):
a[i]=int(input())
if a[i]%10==5:
count=count+1
print(count)
5
87021234578
87024567855
12345678978
45678987877
125
2
'''
# 2-top
from random import randint
n=int(input())
a=[randint(20,50) for i in range(n)]
print(a)
for i in range(1,n,2):
if a[i]%2==0:
print(a[i],end=' ')
20
[22, 28, 45, 21, 45, 32, 39, 31, 29, 33, 43, 23, 44, 43, 22, 24, 40, 37, 44, 41]
28 32 24
# 3 - top
k=int(input('k='))
p=int(input('p='))
a=[0]*k
count=0
for i in range(k):
a[i]=int(input())
if a[i]>p:
count=count+1
if count==12:
break
if count<12:
print("komanda qurilmaydi")
else:
s=0
mn=10000000000000000
mx=0
for i in range(k):
if a[i]>p:
print(i,end=' ')
s=s+a[i]
mn=min(mn,a[i])
mx=max(mx,a[i])
print()
print("komandadagi bo'yi eng kichigi",mn)
print("komandadagi bo'yi eng kattasi",mx)
print("komanda a'zolarining o'rtacha bo'yi",s//12)
k=20
p=160
150
151
152
153
154
155
156
157
158
159
170
170
180
200
200
180
190
170
180
180
komanda qurilmaydi
>>>
==== RESTART: C:/Users/1/AppData/Local/Programs/Python/Python38-32/9-kun.py ====
k=20
160
180
190
170
175
181
155
156
157
158
159
170
170
180
200
200
180
190
170
180
180
p=0 1 2 3 4 10 11 12 13 14 15 16
komandadagi bo'yi eng kichigi 170
komandadagi bo'yi eng kattasi 200
komanda a'zolarining o'rtacha bo'yi 182.16666666666666
# bo'sh tizimga element qo'shish
n=int(input())
a=[] # pustoy list
print(a)
for i in range(n):
a.append(int(input())) # tizim so'nggiga element qo'shish
print(a)
# 81-bet 1-misol
from array import array
n=int(input())
a=array('i',[0]*n)
p=-1
for i in range(n):
a[i]=int(input())
if a[i]==170:
p=i
if p!=-1:
print(p)
else:
print("170 cm bo'yli o'quvchi yo'q")
12
160
150
170
154
154
158
158
170
125
180
190
200
7
5
150
160
180190200
180
154
170 cm bo'yli o'quvchi yo'q
4
170
135
165
123
0
# 82-bet 2-misol
n=int(input())
a=[0]*n
for i in range(n):
a[i]=int(input())
print(max(a)-min(a))
10
100
110
120
130
140
150
160
170
180
190
90
# 3 - top 79-bet
2-usul
k=int(input('k='))
p=int(input('p='))
a=[0]*k
b=[]
count=0
for i in range(k):
a[i]=int(input())
if a[i]>p:
count=count+1
b.append(a[i])
if count==12:
break
if count<12:
print("komanda qurilmaydi")
else:
for i in range(k):
if a[i]>p:
print(i,end=' ')
print()
print("komandadagi bo'yi eng kichigi",min(b))
print("komandadagi bo'yi eng kattasi",max(b))
print("komanda a'zolarining o'rtacha bo'yi",sum(b)//12)
'''
# 83-bet misol
from array import array
n=int(input())
a=array('i',[0]*n)
s=['a']*n
t=z=p=0
for i in range(n):
s[i]=input()
a[i]=int(input())
if a[i]<0:
t=t+1
mn=a[0]
mx=a[0]
for i in range(1,n):
if a[i]
mn=a[i]
p=i
if a[i]>mx:
mx=a[i]
z=i
print("eng sovuq shahar",s[p])
print("eng issiq shahar",s[z])
print("sovuq shaharlar soni",t)
5
astana
-20
almata
20
shimkent
15
kokshetay
-5
aktay
0
eng sovuq shahar astana
eng issiq shahar almata
sovuq shaharlar soni 2
'''
# 83-bet misol
from array import array
n=int(input())
a=array('i',[0]*n)
# s=[] -shu qator emas
s=[0]*n
print(s)>>
# 3-misol 82-bet
from array import array
n=int(input())
a=array("i",[0]*n)
s=0
for i in range(n):
a[i]=int(input())
for i in range(1,n,2):
if a[i]%2==0:
s=s+a[i]
print(s)
# 82-bet arrasimon ketma-ketlik
from array import array
n=int(input())
a=array("i",[0]*n)
for i in range(n):
a[i]=int(input())
for i in range(1,n-1):
if not(a[i-1]a[i+1] or a[i-1]>a[i]
print("arrasimon emas")
break
else:
print("arrasimon")
10
1
2
1
2
1
2
0
3
1
-1
arrasimon emas
10
1
2
1
2
1
2
0
3
1
2
arrasimon
'''
# 82-bet arrasimon ketma-ketlik
# 2-usul
from array import array
n=int(input())
a=array("i",[0]*n)
for i in range(n):
a[i]=int(input())
for i in range(1,n-1):
if (a[i-1]a[i+1] or a[i-1]>a[i]
p=1
else:
print("arrasimon emas")
break
else:
print("arrasimon")
'''
# 84-bet
# topshiriq
from array import array
n=int(input())
a=array("I",[0]*n) # I - manfiy emas butun sonlar
for i in range(n):
a[i]=int(input())
print("eng qimmat ot",max(a))
print("eng arzon ot",min(a))
print("hammasi",sum(a))
print("o'rtachasi",sum(a)//n)
print("max-min",max(a)-min(a))
10
105_000
110_000
200_000
250_000
300_000
280_000
310_000
320_000
400_000
500_000
eng qimmat ot 500000
eng arzon ot 105000
hammasi 2775000
o'rtachasi 277500
max-min 395000
'''
# 84-bet
# 1-topshiriq
from array import array
n=int(input("n="))
p=int(input("p="))
a=array("i",[0]*n)
for i in range(n):
a[i]=int(input())
for i in range(n):
if a[i]%p==0:
print(a[i],end=' ')
n=10
p=3
11
12
96
32
69
14
15
7
115
207
12 96 69 15 207
'''
'''
# 1-topshiriq
from array import array
n,p=map(int,input().split())
temp=input().split() # temp -temporary -vaqtincha
# print(temp)
a=array("i",[0]*n)
for i in range(n):
a[i]=int(temp[i])
for i in range(n):
if a[i]%p==0:
print(a[i],end=' ')
'''
'''
# 1-topshiriq
from array import array
n,p=map(int,input().split())
a=array("i",[0]*n)
a=input().split()
# print(a)
for i in range(n):
if int(a[i])%p==0:
print(a[i],end=' ')
'''
# 85-bet
# 2-topshiriq
from array import array
n,m=map(int,input().split())
a=array("i",[0]*n)
a=input().split()
print(int(a[m-2])+int(a[m]))
# m-1 m m+1
# m-1-1=m-2 m-1 m+1-1=m
8 6
11 25 3 6 90 8 10 15
100
# 85-bet
# 3-topshiriq
from array import array
f1=open("input.txt",'r')
f2=open("output.txt","w")
n=int(f1.readline())
a=array('i',[0]*n)
t=f1.readline().split()
s=0
for i in range(n):
a[i]=int(t[i])
s=s+a[i]
f2.write(str(s))
f1.close()
f2.close()
'''
# 85-bet
# 4-topshiriq
from random import randint
from array import array
n=int(input())
a=array('i',[randint(-100,100) for i in range(n)])
print(a)
for i in range(n):
if a[i]>0:
print(i+1,end=' ')
10
array('i', [78, 61, -67, 99, 15, 84, 0, 44, 4, -67])
1 2 4 5 6 8 9
'''
# 86-bet
# 1-topshiriq
from array import array
import math
n=int(input())
a=array("i",[0]*n)
t=input().split() # t -- list
juftlar_soni=0
tublar_soni=0
for i in range(n):
a[i]=int(t[i])
if a[i]%2==0:
juftlar_soni+=1
for j in range(2,round(math.sqrt(a[i]))+1):
if a[i]%j==0:
break
else:
tublar_soni+=1
s=sum(a)
s=s/n
print(f"juft elementlar soni {juftlar_soni}")
print(f"tublar soni {tublar_soni}")
print(f"o'rtachasi {s}")
for i in range(n):
if a[i]
print(a[i],end=' ')
'''
63
1
3
7
9
21
63
37
2
3
4
5
6 sqrt(37)=primerno 6
'''
8
11 511 17 803 53 538 140 505
juft elementlar soni 2
tublar soni 3
o'rtachasi 322.25
11 17 53 140
# 88-bet
# 1-top
'''
from array import array
n,m,p=map(int,input().split())
a=array('i',map(int,input().split()))
count=0
for i in range(n):
if a[i]>m:
a[i]=p
count=count+1
print(a)
print(f"almashtirish soni {count}")
6 10 30
11 25 3 6 90 8
array('i', [30, 30, 3, 6, 30, 8])
'''
'''
from array import array
n,m,p=map(int,input().split())
a=array('i',map(int,input().split()))
count=0
for i in range(n):
if a[i]>m:
a[i]=p
count=count+1
for i in range(n):
print(a[i],end=' ')
print()
print(f"almashtirish soni {count}")
6 10 30
11 25 3 6 90 8
30 30 3 6 30 8
almashtirish soni 3
'''
'''
2-usul
from array import array
n,m,p=map(int,input().split())
a=array('i',map(int,input().split()))
count=0
for i in range(n):
if a[i]>m:
a[i]=p
count=count+1
print(*a)
print(f"almashtirish soni {count}")
6 10 30
11 25 3 6 90 8
30 30 3 6 30 8
almashtirish soni 3
'''
# 2-top
# 89-bet
from array import array
n=int(input())
a=array('i',map(int,input().split()))
mx=max(a)
count=0
for i in range(n):
if a[i]==mx:
count=count+1
print(mx)
print(f"soni {count}")
8
10 14 12 69 32 69 14 69
69
soni 3
# 3-top
# 89-bet
from array import array
n,p=map(int,input().split())
t=array('i',map(int,input().split()))
s=0
for i in range(p-1):
s=s+t[i]
print(s)
10 7
5 6 3 7 8 4 2 6 9 7
33
# 4-top
# 89-bet
from array import array
n=int(input())
a=array('f',map(float,input().split()))
s=sum(a)
print(round(s/n,2))
10
20 22.4 21 22 20 21 20 23 18 19
20.64
'''
a=10
b=5
print(a,b)
t=a
a=b
b=t
print(a,b)
10 5
5 10
a=10
b=5
print(a,b)
a,b=b,a
print(a,b)
10 5
5 10
'''
# 91-bet
from array import array
n,m,k=map(int,input().split())
a=array('i',[0]*n)
for i in range(n):
a[i]=int(input())
a[m],a[k]=a[k],a[m]
print(*a)
6 1 4
12
4
15
24
16
17
12 16 15 24 4 17
'''
from array import array
a=array('i',[i for i in range(10,60,10)])
print(*a)
b=array('i',[i*i for i in range(10)])
print(*b)
a,b=b,a
print(*a)
print(*b)
10 20 30 40 50
0 1 4 9 16 25 36 49 64 81
0 1 4 9 16 25 36 49 64 81
10 20 30 40 50
'''
# 92-bet 2-misol
from array import array
n,z=map(int,input().split())
a=array('i',map(int,input().split()))
count=0
for i in range(n):
if a[i]
a[i]=z
count+=1
print(count)
print(*a)
10 50
86 74 90 27 69 18 22 18 72 21
5
86 74 90 50 69 50 50 50 72 50
# 93-bet
# 3-misol
from array import array
n,p=map(int,input().split())
a=array('i',map(int,input().split()))
for i in range(p):
m=n
k=a[n-1] # oxirgi elementni k ga saqlab qo'ydik
for j in range(n):
m=m-1
a[m]=a[m-1] # har bir elementni o'ngga suramiz
a[0]=k # oxirgi elementni eng boshiga yozdik
print(*a)
10 5
1 2 3 4 5 6 7 8 9 10
10 1 2 3 4 5 6 7 8 9
9 10 1 2 3 4 5 6 7 8
8 9 10 1 2 3 4 5 6 7
7 8 9 10 1 2 3 4 5 6
6 7 8 9 10 1 2 3 4 5
from array import array
a=array('i',[0]*10)
print(a)
print(*a)
b=list()
b=[1]*10
print(b)
'''
print(*b)
for i in range(10):
print(b[i],end=' ')
ikkalasi bir xil natija beradi
'''
agar ma'lumotlar bir qatorda berilgan bo'lsa, map dan foydalanamiz
agar bir ustun qilib berilgan bo'lsa,
a=[0]*n
for i in range(n):
a[i]=int(input())
yoki
a=[]
for i in range(n):
a.append(int(input()))
# 94-bet
# 1-savol
from array import array
n=int(input())
a=array('i',[0]*n)
for i in range(n):
a[i]=int(input())
a[i]=-a[i]
print(*a)
-10>>>10 -(-)=+ -(+)=-
5>>>-5
0>>>0
'''
10
1
2
3
4
5
-6
-7
-8
-9
0
-1 -2 -3 -4 -5 6 7 8 9 0
'''
# 94-bet 4-savol
'''
from array import array
n=int(input())
a=array('i',[0]*n)
for i in range(n):
a[i]=i+1
print(*a)
20
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
>>>
'''
'''
from array import array
n=int(input())
a=array('i',[i+1 for i in range (20)])
print(*a)
'''
'''
# 94-bet
# 1-topshiriq
from array import array
n=int(input())
a=array('i',map(int,input().split()))
count=0
for i in range(n):
if a[i]==0:
a[i]=i
count+=1
print(*a)
print(f"almashtirish soni {count}")
15
1 2 3 4 5 6 10 9 8 7 0 0 0 0 0
1 2 3 4 5 6 10 9 8 7 10 11 12 13 14
almashtirish soni 5
'''
'''
'''
a=[1,2,3,4,0 ,5 ,0,6]
print(a.count(0)) # count - simvol sonini sanaydigan standart funksiya
2
'''
s='informatika'
print(s.count('i'))
2
'''
# 94-bet
# 2-topshiriq
from array import array
k=int(input())
a=array('i',map(int,input().split()))
# a=list(map(int,input().split()))
for i in range(k):
if a[i]==5:
print(i,end=' ')
10
3 5 4 5 3 5 5 3 5 4
1 3 5 6 8
'''
'''
# 95-bet
# 3-topshiriq
from array import array
n=int(input())
a=array('i',map(int,input().split()))
# a=list(map(int,input().split()))
mn=a[0]
mni=0
mx=a[0]
mxi=0
for i in range(n):
if a[i]
mn=a[i]
mni=i
if a[i]>mx:
mx=a[i]
mxi=i
if mn==mx:
print(0)
else:
a[mni],a[mxi]=a[mxi],a[mni]
print(*a)
'''
'''
10
80 201 15 24 63 78 12 14 96 32
80 12 15 24 63 78 201 14 96 32
>>>
'''
'''
5
7 7 7 7 7
0
'''
'''
# 95-bet
# 3-topshiriq
from array import array
n=int(input())
a=array('i',map(int,input().split()))
# a=list(map(int,input().split()))
mn=a[0]
mni=0
mx=a[0]
mxi=0
for i in range(n):
if a[i]<=mn:
mn=a[i]
mni=i
if a[i]>=mx:
mx=a[i]
mxi=i
if mn==mx:
print(0)
…
'''
# 95-bet
# 4-topshiriq
from array import array
n=int(input())
a=array('i',map(int,input().split()))
# a=list(map(int,input().split()))
countt=0
countj=0
for i in range(n):
if a[i]%2==0:
countj+=1
else:
countt+=1
if countt==0 or countj==0:
a=[0]*n
print(*a)
else:
mn=1001
mx=0
mni=0
mxi=0
for i in range(n):
if a[i]
mn=a[i]
mni=i
if a[i]>mx and a[i]%2==0:
mx=a[i]
mxi=i
a[mni],a[mxi]=a[mxi],a[mni]
print(*a)
8
11 20 74 85 63 47 98 75
98 20 74 85 63 47 11 75
6
14 18 96 78 82 2488
0 0 0 0 0 0
5
1 3 5 7 9
0 0 0 0 0
10
11 20 74 85 63 47 98 75 99 10
98 20 74 85 63 47 11 75 99 10
'''
# 95-bet uy ishi
from array import array
n=int(input())
a=array('i',map(int,input().split()))
# a=list(map(int,input().split()))
for i in range(n):
a[i]=a[i]+273
print(*a)
# kelvin=selsiy+273 0C=273K
8
5 -2 7 12 0 -17 -5 6
278 271 280 285 273 256 268 279
# ********* Sortirovka ******
from random import randint
a=[randint(-100,100) for i in range(10)]
# o'sish tartibida -100,0,1,2,3,4,5,6,7,8,9,10
# kamayish tartibida 10,9,8,7,6,5,4,3,2,1,0,-100
b=[1,5,3,10,9,7,6,4,2,8,0,-100,5,4]
# kamaymaydigan tartibda -100,0,1,2,3,4,4,5,5,6,7,8,9,10
# o'smaydigan tartibda 10,9,8,7,6,5,5,4,4,3,2,1,0,-100
print(a)
print(sorted(a)) # o'sish tartibida
print(sorted(a,reverse=True)) # Reverse - naoborot. R-reverse kamayish tartibida
print(a)
a=sorted(a) # o'sish tartibida
print(a)
a=a[::-1] # kamayish tartibida
print(a)
[-50, -69, 27, 39, 27, -97, 85, -90, 69, -21]
[-97, -90, -69, -50, -21, 27, 27, 39, 69, 85]
[85, 69, 39, 27, 27, -21, -50, -69, -90, -97]
[-50, -69, 27, 39, 27, -97, 85, -90, 69, -21]
[-97, -90, -69, -50, -21, 27, 27, 39, 69, 85]
[85, 69, 39, 27, 27, -21, -50, -69, -90, -97]
'''
# kamaymaydigan tartibda -100,0,1,2,3,4,4,5,5,6,7,8,9,10 a[0]=-100, a[-1]=10
from array import array
# n=int(input())
a=array('i',map(int,input().split()))
print(a)
print(sorted(a))
b=[-50,-69,27,39,27,-97,85,-90,69,-21]
print(type(b))
b.sort()
print(b)
# array bo'lsa faqat sortedni ishlata olamiz
# listga sorted(a) va a.sort() ni ishlata olamiz
'''
# 99-bet 2-misol
from array import array
n=int(input())
k=int(input())
a=array('i',map(int,input().split()))
a=sorted(a) # a.sort()
print(a)
print(a[-k])
10
3
8 14 52 14 25 35 67 41 25 30
[8, 14, 14, 25, 25, 30, 35, 41, 52, 67]
41
'''
'''
8 67 52 14 25 35 67 41 25 30
8, 14, 25, 25, 30, 35, 41, 52, 67, 67
agar bir xil elementlar bo'lsa, ikkinchi maximumni ikki xil tushunish mumkin: 67 yoki 52
'''
# 100-bet 3-misol
from array import array
n=int(input())
k=int(input())
a=array('i',map(int,input().split()))
a=sorted(a) # a.sort()
print(a)
print(a[-k:])
10
4
97 39 64 88 35 19 70 61 37 48
[19, 35, 37, 39, 48, 61, 64, 70, 88, 97]
[64, 70, 88, 97]
'''
'''
# 101-bet
# 1-topshiriq
from array import array
n,k=map(int,input().split())
a=array('i',map(int,input().split()))
a=sorted(a)
print(a)
print(a[k-1])
10 4
4 9 5 17 27 6 3 15 11 0
[0, 3, 4, 5, 6, 9, 11, 15, 17, 27]
5
'''
'''
# 101-bet
# 2-topshiriq
from array import array
n=int(input())
a=array('i',map(int,input().split()))
a=sorted(a)
print(a)
print(a[0]+a[-1])
8
150 181 164 172 171 146 174 158
[146, 150, 158, 164, 171, 172, 174, 181]
327
'''
'''
# 102-bet
n=int(input())
a=[0]*n
for i in range(n):
a[i]=input()
a=sorted(a)
print()
print(*a,sep='\n')
'''
'''
5
Sort
Insertion
Quick
Bubble
Selection
Bubble
Insertion
Quick
Selection
Sort
'''
# 102-bet
from array import array
n=int(input())
a=array('i',map(int,input().split()))
if list(a)==sorted(a): # sorted(a) da array list ga aylanib ketar ekan
print(777)
else:
for i in range(1,n):
if a[i]
print(i+1)
break
'''
# 102-bet
from array import array
n=int(input())
a=array('i',map(int,input().split()))
if list(a)==sorted(a): # sorted(a) da array list ga aylanib ketar ekan
print(777)
else:
for i in range(1,n):
if a[i]
print(i+1)
break
'''
'''
# 102-bet 4-top 2-usul
from array import array
n=int(input())
a=array('i',map(int,input().split()))
for i in range(1,n):
if a[i]
print(i+1)
break
else:
print(777)
7
1 2 4 7 7 8 12
777
5
7 10 11 8 12
4
''
a=[]
print(a)
print(len(a))
a.append(6)
print(a)
print(len(a))
a.append(8)
print(a)
print(len(a))
[]
0
[6]
1
[6, 8]
2
a=[]
print(a)
print(len(a))
a.append(6) # append -- oxiriga qo'shadi
print(a)
print(len(a))
a.append(8)
print(a)
print(len(a))
a.pop() # pop() -- oxirgi elementni o'chiradi
print(a)
a.pop()
print(a)
'''
b=[1,2,3,4,5,10,7,8,9,6,0,-200]
print(b)
b.append([110,20,30,40,50])
print(b)
print(b[12])
print(b[-1])
b=[1,2,3,4,5,10,7,8,9,6,0,-200]
print(b)
b.pop(5) # n-chi elementni o'chiradi
print(b)
b.pop()
print(b)
[1, 2, 3, 4, 5, 10, 7, 8, 9, 6, 0, -200]
[1, 2, 3, 4, 5, 7, 8, 9, 6, 0, -200]
[1, 2, 3, 4, 5, 7, 8, 9, 6, 0]
>>>
'''
'''
b=[1,2,3,4,5,10,7,8,9,6,0,-200]
print(b)
b.append([110,20,30,40,50])
print(b)
print(b[12])
print(b[-1])
'''
b=[1,2,3,4,5,10,7,8,9,6,0,-200]
print(b)
b.remove(4) # remove(n) - n sonini o'chiradi
print(b)
b.remove(-200)
print(b)
b=[1,2,3,4,5,10,7,8,9,6,0,-200,-200]
b.remove(-200)
print(b)
[1, 2, 3, 4, 5, 10, 7, 8, 9, 6, 0, -200]
[1, 2, 3, 5, 10, 7, 8, 9, 6, 0, -200]
[1, 2, 3, 5, 10, 7, 8, 9, 6, 0]
[1, 2, 3, 4, 5, 10, 7, 8, 9, 6, 0, -200]
b=[1,2,3,4,5,10,7,8,9,6,0,-200,-200]
print(b)
b.insert(5,100000) # insert(i,x) -i -o'ringa x sonini qo'yish
print(b)
[1, 2, 3, 4, 5, 10, 7, 8, 9, 6, 0, -200, -200]
[1, 2, 3, 4, 5, 100000, 10, 7, 8, 9, 6, 0, -200, -200]
b=[1,2,3,4,5,10,7,8,9,6,0,-200,-200]
print(b)
print(b.count(-10))
print(b.count(-200))
[1, 2, 3, 4, 5, 10, 7, 8, 9, 6, 0, -200, -200]
0
2
'''
# 105-bet 1-misol
from array import array
n=int(input())
a=array('i',map(int,input().split()))
a.remove(0)
print(*a)
print(len(a))
print(n-1)
10
80 11 25 14 5 43 5 0 41 75
80 11 25 14 5 43 5 41 75
9
9
'''
# 105-bet 2-misol
from array import array
n=int(input())
a=array('i',[0]*n)
k=int(input())
x=int(input())
for i in range(n):
a[i]=int(input())
print(*a)
print(len(a))
a.insert(k-1,x)
print(*a)
print(len(a))
10
6
55
80
11
25
14
5
43
35
17
41
75
80 11 25 14 5 43 35 17 41 75
10
80 11 25 14 5 55 43 35 17 41 75
11
'''
'''
# 106-bet 3-misol
from array import array
n=int(input())
a=array('i',map(int,input().split()))
mn=min(a)
mx=max(a)
a.remove(mn)
print(*a)
a.remove(mx)
print(*a)
a.append(mn)
print(*a)
a.append(mx)
print(*a)
10
23 70 35 13 89 14 46 45 19 41
23 70 35 89 14 46 45 19 41
23 70 35 14 46 45 19 41
23 70 35 14 46 45 19 41 13
23 70 35 14 46 45 19 41 13 89
# 107-bet 1-topshiriq
from array import array
n,p=map(int,input().split())
a=array('i',map(int,input().split()))
i=0
while i
if a[i]>p:
a.pop(i)
else:
i=i+1
print(*a)
10 9
4 9 5 17 27 6 3 15 11 0
4 9 5 6 3 0
'''
# 108-bet 2-topshiriq
from array import array
n=int(input())
a=array('f',map(float,input().split()))
s=sum(a)/n # -o'rtacha qiymat
print(round(s,1))
i=0
while i
if a[i]>s:
a.pop(i)
else:
i=i+1
for i in range(len(a)):
print(round(a[i],1),end=' ')
8
152.5 14.6 24 29.5 80 26 10.2 40.6
47.2
14.6 24.0 29.5 26.0 10.2 40.6
'''
# 108-bet 3-topshirirq
from array import array
n,p,k=map(int,input().split())
a=array('i',map(int,input().split()))
b=[]
for i in range(p):
b.append(a[i])
for i in range(k+1,n):
b.append(a[i])
print(*b)
10 3 6
58 62 44 478 2 32 6 88 64 55
58 62 44 88 64 55
'''
'''
# 2-usul
from array import array
n,p,k=map(int,input().split())
a=array('i',map(int,input().split()))
b=[]
for i in range(n):
if not(p<=i<=k):
b.append(a[i])
print(*b)
10 3 6
58 62 44 478 2 32 6 88 64 55
58 62 44 88 64 55
'''
'''
# 108- bet 4-topshiriq
from array import array
n,t,k=map(int,input().split())
a=array('i',map(int,input().split()))
b=[]
b.append(t)
for i in range(n):
b.append(a[i])
b.append(k)
print(*b)
10 35 43
14 15 86 68 74 65 89 32 41 65
35 14 15 86 68 74 65 89 32 41 65 43
'''
'''
# 108- bet 4-topshiriq 2-usul
from array import array
n,t,k=map(int,input().split())
a=array('i',map(int,input().split()))
a.insert(0,t)
a.append(k)
print(*a)
10 35 43
14 15 86 68 74 65 89 32 41 65
35 14 15 86 68 74 65 89 32 41 65 43
'''
# 108-bet
# 5-topshiriq
from array import array
n=int(input())
a=array('i',map(int,input().split()))
c=True
for i in a:
for j in range(2,i):
if i%j==0:
break
else:
a.remove(i)
c=False
if c==True:
print(-1)
else:
print(*a)
10
25 69 73 68 31 980 17 69 74 234
25 69 68 980 69 74 234
6
15 800 962 111 121 1262
-1
'''
n=int(input())
m=int(input())
# a=[[0 for i in range(m)] for j in range(n)]
a=[[0]*m]*n
for i in range(n): # ikki o'lchamli tizimni jadval ko'rinishida
a[i]=list(map(int,input().split())) # kiritish
for i in range(n):
for j in range(m): # ikki o'lchamli tizimni jadval ko'rinishida
print(a[i][j],end=' ') # chiqarish
print()
# a=[0]*n -- bir o'lchamli
# m=3
# n=4 a=[[0]*m]*n
'''
1 2 3
4 5 6
7 8 9
10 11 12
'''
# 110-bet
# 1-misol
from random import randint
n=int(input())
a=[[0]*n]*n
for i in range(n):
for j in range(n):
a[i][j]=randint(1,9)
for i in range(n):
for j in range(n):
print(a[i][j],end=' ')
print()