// URL: https://yukicoder.me/problems/no/753 import std.algorithm, std.array, std.container, std.math, std.range, std.typecons, std.string; version(unittest) {} else void main() { const n = 16; int[][] a; io.getM(n, n, a); foreach (i; 0..n) foreach (j; i+1..n) a[i][j] = a[j][i] = a[i][j] == 1 ? i : j; auto b = new int[][](3), c = new int[][](1<