QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#336054#8110. Additionucup-team1209#AC ✓1ms3908kbC++201.8kb2024-02-24 12:22:132024-02-24 12:22:13

Judging History

你现在查看的是最新测评结果

  • [2024-02-24 12:22:13]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3908kb
  • [2024-02-24 12:22:13]
  • 提交

answer

#include<bits/stdc++.h>
using std::cin;
using std::cout;
using ll = long long;
using u64 = unsigned long long;
std::vector<std::pair<std::string, std::string>> v;
auto ch = {'a', 'b'};
auto nu = {0, 1};
std::string g(char x) { return std::string(1, x); } 
std::string g(int x) { return std::string(1, 48 + x); }
int main() {
	std::ios::sync_with_stdio(false), cin.tie(0);
	for(int x : nu) for(char a : ch) for(char b : ch) {
		int z = x + (a - 'a') + (b - 'a');
		v.emplace_back(g(x) + g(a) + '#' + g(b), '#' + g(z / 2) + g(z % 2));
	}
	for(char a : ch) {
		v.emplace_back(g(a) + "0", "0" + g(a));
		v.emplace_back(g(a) + "1", "1" + g(a));
	}
	for(int x : nu) for(char a : ch) {
		int z = x + (a - 'a');
		v.emplace_back(g(x) + g(a), '#' + g(z / 2) + g(z % 2));
	}
	v.emplace_back("+#", "#");
	v.emplace_back("0+", "+a");
	v.emplace_back("1+", "+b");
	v.emplace_back("+0", "0");
	v.emplace_back("+1", "1");
	for(int x : nu) for(int y : nu) {
		int z = x + y;
		if(z == 2) {
			v.emplace_back(g(x) + "#" + g(y), "#" + g(z / 2) + g(z % 2));
		} else {
			v.emplace_back(g(x) + "#" + g(y), g(z));
		}
	}
	v.emplace_back("#0", "#");
	v.emplace_back("#1", "1");
	v.emplace_back("#", "0");
	cout << v.size() << '\n';
	for(auto [a, b] : v) {
		cout << a << ' ' << b << '\n';
	}
	return 0;
	cout << std::flush;
	cout << "###################" << '\n';
	cout << "start simulation : " << '\n';
	std::string s;
	cin >> s;
	for(int i = 0;i < 1e5;++i) {
		int ok = 0;
		for(auto [a, b] : v) {
			for(int i = 0;i <= int(s.size() - a.size());++i) {
				if(std::string(s.begin() + i, s.begin() + i + a.size()) == a) {
					s = std::string(s.begin(), s.begin() + i) + b + std::string(s.begin() + i + a.size(), s.end());
					ok = 1;
					break;
				}
			}
			if(ok) break;
		}
		cout << s << '\n';
		if(!ok) {
			break;
		}
	}
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3832kb

input:

1

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #2:

score: 0
Accepted
time: 0ms
memory: 3872kb

input:

2

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #3:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

3

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #4:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

4

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #5:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

5

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #6:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

6

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #7:

score: 0
Accepted
time: 0ms
memory: 3548kb

input:

7

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #8:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

8

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #9:

score: 0
Accepted
time: 0ms
memory: 3828kb

input:

9

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #10:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

10

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #11:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

11

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #12:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

12

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #13:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

13

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #14:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

14

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #15:

score: 0
Accepted
time: 1ms
memory: 3704kb

input:

15

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #16:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

16

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #17:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

17

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #18:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

18

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #19:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

19

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #20:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

20

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #21:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

21

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #22:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

22

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #23:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

23

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #24:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

24

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #25:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

25

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #26:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

26

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #27:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

27

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #28:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

28

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #29:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

29

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #30:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

30

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #31:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

31

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #32:

score: 0
Accepted
time: 0ms
memory: 3896kb

input:

32

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #33:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

33

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #34:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

34

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #35:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

35

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #36:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

36

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #37:

score: 0
Accepted
time: 0ms
memory: 3896kb

input:

37

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #38:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

38

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #39:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

39

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #40:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

40

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #41:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

41

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #42:

score: 0
Accepted
time: 0ms
memory: 3644kb

input:

42

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #43:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

43

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #44:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

44

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #45:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

45

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #46:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

46

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #47:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

47

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #48:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

48

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #49:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

49

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #50:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

50

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #51:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

51

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #52:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

52

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #53:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

53

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #54:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

54

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #55:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

55

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #56:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

56

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #57:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

57

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #58:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

58

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #59:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

59

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #60:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

60

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #61:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

61

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #62:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

62

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #63:

score: 0
Accepted
time: 0ms
memory: 3896kb

input:

63

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #64:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

64

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #65:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

65

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #66:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

66

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #67:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

67

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #68:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

68

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #69:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

69

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #70:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

70

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #71:

score: 0
Accepted
time: 0ms
memory: 3656kb

input:

71

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #72:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

72

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #73:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

73

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #74:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

74

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #75:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

75

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #76:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

76

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #77:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

77

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #78:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

78

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #79:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

79

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #80:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

80

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #81:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

81

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #82:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

82

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #83:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

83

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #84:

score: 0
Accepted
time: 0ms
memory: 3872kb

input:

84

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #85:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

85

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #86:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

86

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #87:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

87

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #88:

score: 0
Accepted
time: 0ms
memory: 3708kb

input:

88

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #89:

score: 0
Accepted
time: 0ms
memory: 3908kb

input:

89

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #90:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

90

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #91:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

91

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #92:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

92

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #93:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

93

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #94:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

94

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #95:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

95

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #96:

score: 0
Accepted
time: 0ms
memory: 3708kb

input:

96

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #97:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

97

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #98:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

98

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #99:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

99

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #100:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

100

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #101:

score: 0
Accepted
time: 0ms
memory: 3500kb

input:

101

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #102:

score: 0
Accepted
time: 0ms
memory: 3644kb

input:

102

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #103:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

103

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #104:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

104

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #105:

score: 0
Accepted
time: 0ms
memory: 3724kb

input:

105

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #106:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

106

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #107:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

107

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #108:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

108

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #109:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

109

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #110:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

110

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #111:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

111

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #112:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

112

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #113:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

113

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #114:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

114

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #115:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

115

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #116:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

116

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #117:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

117

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #118:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

118

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #119:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

119

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #120:

score: 0
Accepted
time: 0ms
memory: 3908kb

input:

120

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #121:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

121

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #122:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

122

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #123:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

123

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #124:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

124

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #125:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

125

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #126:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

126

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #127:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

127

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #128:

score: 0
Accepted
time: 0ms
memory: 3600kb

input:

128

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #129:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

129

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #130:

score: 0
Accepted
time: 0ms
memory: 3896kb

input:

130

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #131:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

131

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #132:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

132

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #133:

score: 0
Accepted
time: 0ms
memory: 3896kb

input:

133

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #134:

score: 0
Accepted
time: 0ms
memory: 3896kb

input:

134

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #135:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

135

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #136:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

136

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #137:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

137

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #138:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

138

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #139:

score: 0
Accepted
time: 0ms
memory: 3900kb

input:

139

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #140:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

140

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #141:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

141

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #142:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

142

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #143:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

143

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #144:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

144

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #145:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

145

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #146:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

146

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #147:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

147

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #148:

score: 0
Accepted
time: 0ms
memory: 3904kb

input:

148

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #149:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

149

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!

Test #150:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

150

output:

28
0a#a #00
0a#b #01
0b#a #01
0b#b #10
1a#a #01
1a#b #10
1b#a #10
1b#b #11
a0 0a
a1 1a
b0 0b
b1 1b
0a #00
0b #01
1a #01
1b #10
+# #
0+ +a
1+ +b
+0 0
+1 1
0#0 0
0#1 1
1#0 1
1#1 #10
#0 #
#1 1
# 0

result:

ok OK!