a*b-(a+b)
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); System.out.println(a*b-(a+b)); } }