#include "bits/stdc++.h" using namespace std; typedef long long ll; int main(){ int N, M; cin >> N >> M; int sum=1; for(int i=0; i