fork download
  1. n, m, k = map(int, input().split())
  2. B = [0] * n
  3. for i in range(n):
  4. B[i] = int(input())
  5. B[m], B[k] = B[k], B[m]
  6. print(B)
  7.  
Success #stdin #stdout 0.07s 14136KB
stdin
6 1 4
12
4
15
24
16
1
stdout
[12, 16, 15, 24, 4, 1]