program fakt;
var a,b,c:integer;
begin
read(a,b);
b:=b-1;
c:=(a*b)+1;
writeln(c);
end.