https://www.acmicpc.net/problem/2163
#include <iostream> using namespace std; int main() { int n,m; cin>>n>>m; cout<<n*m-1; }