Vivek has two scanners in his shop to scan the documents of a customer. When a customer comes to his shop, they give X number of documents to scan, Also Vivek knows T1 and T2, the time taken by scanner 1 and scanner 2 to scan a single document respectively, and X is the number of documents given by the customer. Write a program to calculate the minimum time to scan all the X documents using those two scanners.
Example:
Input:
2
4
10
Output:
14
Solution:
Coming....