x = int(input())y = int(input()) a = abs(x)b = abs(y) print(a * b)print(2 * (a + b))
3 -4
12 14
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!