#include <iostream>

int main ()
{
    int c, l;
    scanf ("%d %d", &c, &l);
    printf ("%d\n", c*(l-1)+1);
    return 0;
}
