Ben has 2 integers. He tells sum of the integers to the person S and product of those numbers to P.Now there is this conversation between S and P.
S: I don’t know what the numbers are
P: Neither do I
S: Now, I know what the numbers are.
P: Hey, me too.
Assuming S and P to be very wise and good in mathematics, What are those two integers?
If the integers are x and y, Output 5*x + y
.
Note :
- Numbers are greater than 0.
- S and P are always truthful.
- If the numbers are x and y, whats
5 * x + y
.