Octopus Game

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

The tournament of "Octopus Game" is held in some country.

This round the participants will deal with math puzzle. Each player has two cards, initially there are integers a_0a\_0 and b_0b\_0 at the cards, respectively. 

Players make actions with their cards. Let the integers on player's cards be aa and bb. The player first chooses an integer kk, and then performs one of the following operations:

  1. replace the integer on the first card with a+kba + kb
  2. replace the integer on the second card with b+kab + ka.

While playing, the absolute value of an integer written on a card must not exceed 101810^{18}, otherwise something bad might happen. Those players are winning the round, who get 00 written on one of the cards, after performing at most 5050 actions.

You are going to play the game, and of course you would like to win!

입력

The only line of input contains two integers a_0a\_0 and b_0b\_0 --- the initial integers written on the cards (1018a_0,b_01018-10^{18} \le a\_0, b\_0 \le 10^{18}).

출력

The first line must contain nn --- the number of actions that the player is willing to perform to get 0 on one of the cards (0n500 \le n \le 50). Note that you need not minimize the number of actions, but it must not exceed 5050

The following nn lines must contain two space separated integers each: t_it\_i and k_ik\_i --- the type of the respective action and the chosen integer kk.

If there are multiple valid solutions, it is allowed to output any of them, but note that during the game the integers on the cards must not exceed 101810^{18} by their absolute values.

힌트

The first test requires just one action: add three times integer on the first card to the integer on the second card. 

The second test: after the first action there are integers 27-27 and 33 on the cards, respectively, after the second action the integers are 00 and 33.

The third test: the integers on the cards are in turn: 5656 and 1515, 2626 and 1515, 1111 and 1515, 1111 and 7-7, 44 and 7-7, 44 and 11, 00 and 11.