#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 , 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 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: ; ; ; ; .
Example
Input
8 12 3 2 5 7 2
Output
144 2.0
Explanation
Start with . In order, the assignments give , , , , , , and finally . Thus the result is 144 2.0.