#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  string s;
  cin >> s;
  bool hantei = true;
  if (s.size() != a + b + 1)
    hantei = false;
  else {
    for (int i = 0; i < (int)(s.size()); i++) {
      if (i != 3)
        if (s[i] < 0 && s[i] > 9) hantei = false;
    }
  }
}
