A Plus Equals B

두 양의 정수 A와 B에서 시작해, 두 값을 같게 만드는 5000단계 이하의 배증 또는 덧셈 연산을 출력한다.

어려움8정수론수학그리디구현아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

A+BA+B is a problem used to test one's basic knowledge for competitive programming. Here is yet another boring variation of it.

You have two integers, AA and BB. You want to make them equal. To do so, you can perform several steps, where each step is one of the following:

  • AA += AA
  • AA += BB
  • BB += AA
  • BB += BB

Unfortunately, A+BA+B is a hard problem for us, so you are allowed to make at most 5000 steps.

입력

In the first line, two space-separated integers AA and BB are given. These are the initial values of the variables AA and BB.

출력

In the first line, print a single integer nn (0n5,0000 \le n \le 5\\,000) denoting the number of steps.

In the next nn lines, print one of the following strings to denote your desired operation: A+=AA+=BB+=AB+=B.

Any sequence of steps that yields the desired result will be judged correct.

제한

  • 1A, B10181 \le A,\ B \le 10^{18}