Submit solution

Points: 0.20
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Author:
Problem type

Ta định nghĩa trung bình cộng của ba số nguyên ~x_1, x_2, x_3~ là ~(x_1+x_2+x_3)/3~.

Cho ba số nguyên ~a~, ~b~ và ~x~. Hãy tìm số nguyên ~c~ sao cho trung bình cộng của ba số ~a~, ~b~, ~c~ đúng bằng ~x~.

Input

Gồm một dòng duy nhất chứa ~3~ số nguyên ~a~, ~b~, ~x~ ~(1 \leq a, b, x \leq 100)~.

Output

In ra số nguyên ~c~ cần tìm.

Simple Input
2 3 4
Simple Output
7

Comments

Please read the guidelines before commenting.


There are no comments at the moment.