#include <bits/stdc++.h>
int main() {
  int n, q, i, j, r;
  int *gn;
  int *gn_new;
  char *str;
  char l, d;
  scanf("%d %d", &n, &q);
  scanf("%s", str);
  for (i = 0; i < q; i++) {
    scanf("%c %c", &l, &d);
  }
  printf("%d", 0);
  return 0;
}
