import std.algorithm; import std.array; import std.conv; import std.math; import std.stdio; import std.string; import std.range; int readint() { return readln.chomp.to!int; } int[] readints() { return readln.split.map!(to!int).array; } void main() { int n = readint(); auto xs = readln.split; auto ys = readln.split; for (int i = 0; i < n; i++) { if (xs[i] != ys[i]) { writeln(i + 1); writeln(xs[i]); writeln(ys[i]); } } }