1.


/**
* FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS10
* Problem: 10970 Big Chocolate
*
* @author Robert Reichart
*
* Status : Accepted
* Runtime: 1.708
*/
import java.io.*;
class Main{
public static void main(String... args)throws IOException{
BufferedReader is= new BufferedReader(new InputStreamReader(System.in));
String line= is.readLine();
while (line!=null){
String[] werte = line.split(" ");
System.out.println(Integer.parseInt(werte[0])*Integer.parseInt(werte[1])-1);
line=is.readLine();
}
}
}


2.
/** * FWP, Ausgewählte Probleme aus dem ACM Programming Contest, SS10
* * Problem: 10970 - Big Chocolate
* * Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1911
* * Savkina Ekaterina
* * @version 1.0, 22/04/2010
* * Status : Accepted
* * Runtime: 1.804 */
import java.util.Scanner;


public class chocolate {
public static void main (String [] args){
Scanner sc=new Scanner(System.in);


while(sc.hasNextInt()){
int a=sc.nextInt();
int b=sc.nextInt();

System.out.println((a*b)-1);

}

}

}