The "Diamond Hands" corporation has a long and eventful history. Starting from its foundation, they had a lot of successful and unsuccessful days. For simplicity, let's consider a day successful if its stock price increased by one (in abstract units). Similarly, we consider a day unsuccessful if its stock price decreased by one. As it often happens, successful days come in long streaks, as do unsuccessful days. There is no middle ground: every day is either successful or unsuccessful.
You would like to figure out which days were successful and unsuccessful for the corporation. To accomplish it, you obtained the historical stock price data: n pairs (d_i,p_i), meaning that after d_i days after issuing stock the difference with the starting stock price was p_i units (p_i can be an arbitrary integer, including any negative number).
Represent the corporation's history with the minimum number of successful or unsuccessful day streaks, or report that data contains an error and it's impossible to achieve it. If there are multiple possible answer with the minimum number of streaks, output any one of them.
The first line of the input contains an integer n (1≤n≤200,000). Next n lines contain a pair of integers d_i;p_i each (1≤d_i≤108; −108≤p_i≤108; d_i<d_i+1 for all i from 1 to n−1).
If there are errors in the historical stock price data, output −1. Otherwise, print k, the number of streaks, in the first line. Next, print k lines describing successful or unsuccessful streaks. Each line should contain a pair l_i;c_i (1≤l_i≤108; c_i∈+,-), meaning that the next streak lasted for l_i days, and was successful if c_i=+, or unsuccessful if c_i=-.
The description of streaks must be done in chronological order, starting from the day stock was issued and ending on day d_n. This means that the sum of all l_i must be equal to d_n.
In the first example, first three days are successful, so after 2 days the difference is 2, and after 3 days the difference is 3. Next three days are unsuccessful, so after 5 days the difference becomes 1, and after 6 days the stock price is back to the initial value. The last seventh day is successful, so the final difference after 7 days is 1.