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