LearnPy Hub
← Arena
EasyRating 900

Smallest Square for Two

Two identical a × b rectangles must fit side by side inside a square without overlapping (you may rotate them). Print the smallest area of the square.

Input

Two integers a and b (1 ≤ a, b ≤ 100).

Output

One integer.

Sample 1

Input
3 2
Output
16

Sample 2

Input
4 2
Output
16
solution.py
Output appears here
Smallest Square for Two · Python Arena problem · LearnPy Hub