import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop; void main() { auto s = readln.split; auto N = s[0].to!int; auto K = s[1].to!int; auto A = N.iota.map!(_ => readln.chomp.to!int).array; int ans = 0; foreach (mask; 0..(1<