Problem 760
Multiply Two Numbers
Problem
Read two integers A and B and print their product A × B. Each value can be as large as 10^9 in absolute value, so the product can reach 10^18. That does not fit in a 32-bit integer, so store the numbers in a 64-bit type (long long in C++, long in Java) before multiplying; Python integers never overflow.
Input
A single line with two integers A and B.
Output
Print A × B.
Constraints
-10^9 <= A, B <= 10^9
Example input
12 -4
Example output
-48
Explanation
For A = 12 and B = -4, the product is 12 × (-4) = -48. Multiplying 10^9 by 10^9 would give 10^18, which still fits in 64 bits.