Problems
126 - Chair and Table
SUBMIT PROBLEM

Chair and Table

Time Limit: 1 sec

 

The Problem

The price of X chairs and Y tables totals T taka. The price of one chair is T1 taka; what is the price of one table ?

 

Example:

if X = 5, Y = 2, T = 5945 and T1 = 789 then

the price of one table 1000 taka

The Input

The input file contains only 4 integer numbers X, Y, T, T1 (X, Y < 100 and T, T1 <=100000).

 

The Output

Output will show the one integer number which is the price of one table in a separate line.

 

Sample Input

5 2 5945 789

 

Sample Output

1000 Taka

 

 

 

 

Problem Setter: Shahin ShamS