2017-02-12 00:31:12 -08:00
|
|
|
// Author: Rodney Shaghoulian
|
2018-07-27 16:45:56 -07:00
|
|
|
// Github: github.com/RodneyShag
|
|
|
|
|
// HackerRank: hackerrank.com/RodneyShag
|
2017-02-12 00:31:12 -08:00
|
|
|
|
2017-02-07 01:14:49 -08:00
|
|
|
import java.io.*;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.text.*;
|
|
|
|
|
import java.math.*;
|
|
|
|
|
import java.util.regex.*;
|
|
|
|
|
|
|
|
|
|
public class Solution {
|
|
|
|
|
private static int B;
|
|
|
|
|
private static int H;
|
|
|
|
|
private static boolean flag;
|
|
|
|
|
|
|
|
|
|
static {
|
|
|
|
|
Scanner scan = new Scanner(System.in);
|
|
|
|
|
B = scan.nextInt();
|
|
|
|
|
H = scan.nextInt();
|
|
|
|
|
scan.close();
|
|
|
|
|
if (B <= 0 || H <= 0) {
|
|
|
|
|
System.out.println("java.lang.Exception: Breadth and height must be positive");
|
|
|
|
|
flag = false;
|
|
|
|
|
} else {
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-24 00:24:47 -06:00
|
|
|
public static void main(String[] args) {
|
|
|
|
|
if (flag) {
|
|
|
|
|
int area = B * H;
|
2017-02-07 01:14:49 -08:00
|
|
|
System.out.print(area);
|
|
|
|
|
}
|
2017-02-24 00:24:47 -06:00
|
|
|
} // end of main
|
|
|
|
|
} // end of class
|