Adam is a fish farmer whose job is to manage two fishponds A and B. At the beginning of the first year, fishponds A and B contains N and M fish, respectively. The number of fish in each pond increases by 8% every year. At the beginning of each of the following K years, Adam moves some amount of fish from one fishpond to the other. You are asked to help calculate the amount of fish in fishponds A and B after K years.
Note: When you calculate the amount of fish by multiplying the increasing rate, you should round the result down to the nearest integer; For example,1.7→1. (無條件捨去成整數).
Consider the following example:
The input contains several lines. The first line contains two positive integers N and M, which represents the number of fish in fishponds A and B at the beginning of the first year, respectively.
The second line contains a positive integer K, which represents the number of years you should consider.
Each of the remaining K lines contains two elements, which are separated by a blank, describing the fish movement in each year, starting from the 2nd year:
The amounts of fish in fishponds A and B in the beginning of year K+1, respectively, which are separated by a blank. Note that you need to print a '\n' at the end.