#1877. 是个人都会做的A+C-B/D* A *(E+F-G)-H%I

是个人都会做的A+C-B/D* A *(E+F-G)-H%I

是个人都会做的A+C-B/D* A *(E+F-G)-H%I

Background

Once upon a time, there was a mountain and a company on the mountain. The boss of the company was not very good at doing calculations.

One day, the company's expenses were abnormal, and the treasurer and accountant went down to see the world. So , the boss decided to do it himself!

Description

Please calculate the value of "S=A+C-B/D*A(E+F-G)-H%I". A , B , C , D , E , F , G , H , I , are positive integers and can be equal.

Format

Input

Enter 9 positive integers to represent A B C D E F G H I, respectively.

Output

Output a number as S.

Sample1

1 1 1 1 1 1 1 1 1
1

Sample2

1 2 3 4 5 6 7 8 9
-4

Limitation

The range of each number shall not exceed int (except S).