#include <iostream> using namespace std; int main() { int gb; int lb; cin >> gb >> lb; cout<<lb-1<< gb-1; }