fork download
  1. from array import array
  2. X=array("i")
  3. N=int(input())
  4. S=0
  5. p=0
  6. X=[0]*N
  7. for i in range(0,N):
  8. X[i]=int(input())
  9. for i in range(0,N):
  10. if X[i]==170:
  11. p=i
  12. if p!=0:
  13. print(p)
  14. else:print('boiynyn uzyndygy 170 cm okushy jok')
Success #stdin #stdout 0.03s 9364KB
stdin
4
182
169
175
168
stdout
boiynyn uzyndygy 170 cm okushy jok