#include #include #include #include int main() { long n,m; scanf("%ld %ld",&n,&m); long tot = 0; tot = (n*m)-1; printf("%ld",tot); return 0; }