fork download
  1. a=[]
  2. n=int(input())
  3. for i in range(1,n+1):
  4. b=int(input())
  5. a.append(b)
  6. a.sort()
  7. x=0
  8. for i in range(1,n+1):
  9. x=x+1
  10. if a[i]==a[i+1]:
  11. break
  12.  
  13. print(a[x])
  14.  
Runtime error #stdin #stdout #stderr 0.01s 27704KB
stdin
5
2 3 6 6 5
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
ValueError: invalid literal for int() with base 10: '2 3 6 6 5'