1. C, Doina Logofatu


/**
* ACM programming Contest WS 08/09
* UVa Status: Accepted
* Run Time: 0.070
* Programming Language: C
* @author *****
*/

#include<stdio.h>

int main(){
int m, n;

while (scanf("%d%d",&m,&n) == 2)
printf("%d\n", m*n-1);

return 0;
}