let reads f = stdin.ReadLine().Split() |> Array.map f

let swap (a : int array) i j =
    let x = a.[i]
    a.[i] <- a.[j]
    a.[j] <- x

let A = reads int
swap A 0 1
swap A 0 2

printfn "%s" (A |> Array.map string |> Array.toSeq |> String.concat " ")
