n = int(input())m = int(input())print(n * (n + 1) // 2 * m * (m + 1) // 2)
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "prog.py", line 1, in <module> EOFError: EOF when reading a line
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!