Under construction

Still being built. Things may change

HI-ARC=?

Time limit1sMemory limit1024 MB

Summary
The task reads five integers H, I, A, R, C and prints H times I minus A times R times C.
Level

Easy1 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

The HI-ARC Club enjoys a unique tradition of expressing everyday sentences as formulas. The HI-ARC formula is a special formula recently developed by the club, and it is evaluated with the following rules.

  • The product of HH and II is the first term.
  • The product of AA, RR, and CC is the second term.
  • The result is the first term minus the second term.

When a number for each letter is given, print the result.

Input

The first line contains the values for H,I,A,R,CH, I, A, R, C in that order, separated by spaces (0≤H,I,A,R,C≤1000 \leq H,I,A,R,C \leq 100, and H,I,A,R,CH,I,A,R,C are integers).

Output

Print the result of evaluating the formula.

Examples1

  1. Example 1

    Input
    4 6 1 2 3
    
    Expected output
    18