#include #include #include #include #include #include #include int main(){ int n; int m; scanf("%d %d",&n,&m); int x,y,c; x=n-1; y=m-1; c=x+y; printf("%d",c); return 0; }