fork download
  1. import java.util.*;
  2.  
  3. class Main
  4. {
  5. public static void main (String[] args) throws java.lang.Exception
  6. {
  7. Scanner scan = new Scanner(System.in);
  8. int a = scan.nextInt();
  9. int b = scan.nextInt();
  10.  
  11. System.out.print(a*b-a-b);
  12. }
  13. }
Success #stdin #stdout 0.08s 29264KB
stdin
2	1
stdout
-1