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