logo AlgoBeat OnlineJudge
登录 注册

#215694. [2019 KAIST RUN Spring] A Plus Equals B

内存限制:1024 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

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

  • +=
  • +=
  • +=
  • +=

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

输入格式

Two integers are given. ().

输出格式

In the first line, print a single integer () denoting the number of steps.

In next lines, print one of the following strings to denote your desired operation: +=, +=, +=, or +=.

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

样例

样例输入 1

2 3

样例输出 1

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