#include #include #include #include #include #include #include #include #include using mint = atcoder::modint1000000007; using namespace std; typedef long long ll; const int INF = 1<<30; const ll INFLL = 1LL<<60; const ll MOD = 1000000007; //998244353; using Graph = vector>; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(15); int n, m; cin >> n >> m; vector S(m); for (int i = 0; i < m; i++){ string s; cin >> s; int val = 0; for (int j = 0; j < n; j++) if (s[j] == '1') val += 1<