#include <bits/stdc++.h>
using namespace std;
vector<vector<int>> bingo(3, vector<int>(3));
int N, M;
int solve() {
  cin >> N;
  cin >> M;
  if (N > 1) {
    cout << 0 << endl;
  }
  return 0;
}
int main() {
  solve();
  return 0;
}
