#include #include #include #include int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long int n,m; scanf("%ld %ld",&n,&m); printf("%ld",(n*m)-1); return 0; }