#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ int n; int m; cin >> n >> m; long long a=(long long)n; long long b=(long long)m; cout<<((long long)n*m)-1<