#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long long n,m,i,j; cin>>n>>m; i=(m-1)+(m*(n-1)); j=(n-1)+(n*(m-1)); cout<