import std.stdio, std.string, std.conv; import std.range, std.algorithm, std.array; void main() { int n,k; int[] a; scan(n,k); a = iota(n).map!(i => readln.chomp.to!int).array; int ans; foreach (s ; 0 .. (1<