defmodule Main do def main do 1..3 |> Enum.map(fn _ -> IO.read(:line) |> String.trim() end) |> solve |> IO.puts() end def solve([n, x, y]) do s = x |> String.split() t = y |> String.split() 0..((n |> String.to_integer()) - 1) |> Enum.reject(fn i -> s |> Enum.at(i) == t |> Enum.at(i) end) |> Enum.map(fn j -> """ #{j + 1} #{s |> Enum.at(j)} #{t |> Enum.at(j)} """ |> String.trim() end) |> Enum.join("\n") end end