#PCBSAU0000007. Chuỗi phép gán kết hợp (Augmented Assignment Chain)

Chuỗi phép gán kết hợp (Augmented Assignment Chain)

Augmented Assignment Chain

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given seven integers a,b,c,d,e,f,ga,b,c,d,e,f,g, initialize x=a, y=b, then execute x += b, y -= a, x *= c, y /= d, x //= e, y %= f, x **= g in that order. Print the final variables. This sequence is a Phuoc Hung OJ-authored concrete implementation of the catalog objective.

Input

One line with seven integers a,b,c,d,e,f,ga,b,c,d,e,f,g in that order.

Output

Print the final x and y, separated by one space. x is an integer and y is a float.

Subtask

  • Subtask 1 — 100 points: 0≤a,b≤1000\le a,b\le100; 0≤c≤100\le c\le10; d∈{1,2,4,8}d\in\{1,2,4,8\}; 1≤e,f≤101\le e,f\le10; 0≤g≤30\le g\le3.

Example

Input

8 12 3 2 5 7 2

Output

144 2.0

Explanation

Start with x=8,y=12x=8,y=12. In order, the assignments give x=20x=20, y=4y=4, x=60x=60, y=2.0y=2.0, x=12x=12, y=2.0y=2.0, and finally x=144x=144. Thus the result is 144 2.0.