#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(i64 i=0; i<n; i++)
#define all(v) v.begin(),v.end()
#define pp pair<int,int>
using Graph=vector<vector<int>>;
using i64=int64_t;

int main() {
    int n,m;cin>>n>>m;
    rep(i,m) {
        string s;
        cin>>s;
    }
    rep(i,20) {
        rep(j,20) {
            cout << "H";
        }
        cout << endl;
    }
}
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define endl '\n';
const ll nmax = 1000000007;

int main(){
	
    ll a, b;
    cin >> a >> b;
    ll sa = 0, sb = 0;

    while(a > 0){
        sa += (a%10);
        a /= 10;
    }while(b > 0){
        sb += (b%10);
        b /= 10;
    }

    cout << (max(sa, sb)) << endl;
	return 0;
}
