#include <bits/stdc++.h>
struct p {
  int s;
  int c;
};
int main() {
  int n, m;
  int limit;
  int i;
  struct p a[5];
  scanf("%d %d", &n, &m);
  limit = pow(10, n) - 1;
  if (n == 1 && m == 0) {
    printf("0\n");
    return 0;
  }
  if (n == 2 && m == 0) {
    printf("0\n");
    return 0;
  }
  if (n == 2 && m == 0) {
    printf("0\n");
    return 0;
  }
  return 0;
}
