#include<bits/stdc++.h>
using namespace std;

int main(){
    int a, b;
    string s;
    cin >> a >> b;
    cin >> s;
    vector<char> num{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
    if(s.at(a) == '-'){
        vector<bool> judge2  (s.size(), false);
        judge2.at(a) = true;
        for(int i = 0;i < s.size();i++){
            for(int j = 0;j <  num.size();j++){
                if(i == a)continue;
                else if(s.at(i) == num.at(j))judge2.at(i) = true;
            }
        }
        bool judge = true;
        for(int i = 0;i < judge2.size();i++){
            if(!judge2.at(i))judge = false;
        }
        if(judge)cout << "Yes" << endl;
        else cout << "No" << endl;
    }
    else cout << "No" << endl;
}
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;

int main(){
    int n;cin>>n;
    string a,b,c;cin>>a>>b>>c;
    int acc = 0;
    for (int i=0;i<n;i++){
        vector<char> letters;
        letters.push_back(a[i]);
        letters.push_back(b[i]);
        letters.push_back(c[i]);

        sort(letters.begin(), letters.end());
        letters.erase(unique(letters.begin(), letters.end()), letters.end());
        if (letters.size() == 2){
            acc++;
        } else if (letters.size() == 3){
            acc += 2;
        }
    }
    cout << acc << endl;
    return 0;


}