Problems
232 - Easiest Equation V.1
SUBMIT PROBLEM

Easiest Equation V.1

Time Limit: 1 sec

 

The Problem

Mr. Number, principle of Math is Fun School is very calm and honest person. Everyone loves him. He loves to solve different types of math. One of his favorite math problems is

 

“Suppose you have two numbers X and Y. You have to multiply the addition and subtraction of those two numbers. Remember the addition will be always 1/n of the multiplication of addition and subtraction of those numbers. Now calculate and tell me what will be the answer of Division of these two numbers??”

 

 

The Input

The input file contains two integer numbers which is the addition of X and Y(X+Y<=100) and the value of n (n<=5)

 

The Output

Output will show the values rounded in two decimal points in two separate lines. One is the division of X and Y. Another is the multiplication of X and Y.

 

Sample Input

49 5

 

Sample Output

1.23

594.00

 

 

 

 

Problem Setter: Samia Safa Ahmed