Problem Description

Four integers a b c d are provided. Compute (a+b)*c - d and output it.

Input Format

One line: a b c d.

Output Format

One integer result.

Sample Test Case

Input:
2 3 4 5
Output:
15

Constraints

Values fit in 64-bit.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next