sp = [0] * int(input('size=')) for i in range(len(sp)): sp[i]=int(input()) tem=max(sp) sp[sp.index(max(sp))] = sp[0] sp[0]=tem print(sp)