a = int(input())b = int(input())print(a * b)print(2 * (a + b))
4 6
24 20
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!