import java.util.*; import java.math.*; public class Hack42_1 { static Scanner sc = new Scanner(System.in); static int mod = 1000000007; public static void main(String[] args) { long n = nl(); long m = nl(); System.out.println((n*m)-1); } static long[] la(int x) { long[] a = new long[x]; for(int i=0;i