시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB62526621846.383%

문제

$A+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, $A$ and $B$. You want to make them equal. To do so, you can perform several steps, where each step is one of the following:

  • $A$ += $A$
  • $A$ += $B$
  • $B$ += $A$
  • $B$ += $B$

Unfortunately, $A+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 $A$ and $B$ are given. These are the initial values of the variables $A$ and $B$.

출력

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

In the next $n$ 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.

제한

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

서브태스크 1 (36점)

This subtask has an additional constraint: 

  • $A = 1$

서브태스크 2 (64점)

This subtask has no additional constraints.

예제 입력 1

2 3

예제 출력 1

4
B+=B
B+=A
A+=A
A+=A

채점 및 기타 정보

  • 예제는 채점하지 않는다.