fork download
  1. n = int(input())
  2. l = list(map(int,input().split()))
  3.  
  4. for i in range(0,n):
  5. l[i]=l[i]+1
  6. print(l[i])
  7. print(l)
Success #stdin #stdout 0.03s 9868KB
stdin
5
1 2 3 4 5
stdout
2
3
4
5
6
[2, 3, 4, 5, 6]