let () = Scanf.scanf "%d\n" @@ fun n ->
  let as_ = Array.init n @@ fun _ -> Scanf.scanf "%d " @@ fun a -> a in
  let xor = Array.fold_left ( lxor ) 0 as_ in
  Array.iter (fun a -> Printf.printf "%d " @@ a lxor xor) as_;
  print_newline ()
