QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#377473#8110. AdditionSolitaryDream#AC ✓1ms3820kbC++171.7kb2024-04-05 14:02:032024-04-05 14:02:04

Judging History

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

  • [2024-04-05 14:02:04]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3820kb
  • [2024-04-05 14:02:03]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
vector<pair<string, string>> rst = {
    {"+", "BME"},
    {"0B", "B0"},
    {"1B", "B1"},
    {"E0", "R0E"},
    {"E1", "R1E"},
    {"R00", "0R0"},
    {"R01", "1R0"},
    {"R10", "0R1"},
    {"R11", "1R1"},
    {"R0E", "0E"},
    {"R1E", "1E"},
    // ---
    {"X0", "0X"},
    {"X1", "1X"},
    {"XE", "EX"},
    {"Y0", "0Y"},
    {"Y1", "1Y"},
    {"YE", "EY"},
    // ---
    {"0M0", "MX"},
    {"0M1", "MY"},
    {"0ME", "MXE"},

    {"1M0", "MY"},
    {"1M1", "NX"},
    {"1ME", "MYE"},

    {"BM0", "BMX"},
    {"BM1", "BMY"},
    {"BMEX", "X"},
    {"BMEY", "Y"},
    // ---
    {"0N0", "MY"},
    {"0N1", "NX"},
    {"0NE", "MYE"},

    {"1N0", "NX"},
    {"1N1", "NY"},
    {"1NE", "NXE"},

    {"BN0", "BMY"},
    {"BN1", "BNX"},
    {"BNE", "Y"},
    // ---
    {"X", "O"},
    {"Y", "I"},
    {"O", "0"},
    {"I", "1"},
};
int main() {
    // string s;
    // cin >> s;
    // while (1) {
    //     bool flag = 0;
    //     for (int i = 0; i < rst.size(); ++i) {
    //         int ps = -1;
    //         for (int j = 0; j + rst[i].first.size() <= s.size(); ++j) 
    //             if (s.substr(j, rst[i].first.size()) == rst[i].first) {
    //                 ps = j;
    //                 break;
    //             }
    //         if (ps == -1) continue;
    //         flag = 1;
    //         s = s.substr(0, ps) + rst[i].second + s.substr(ps + rst[i].first.size(), s.size());
    //         break;
    //     } 
    //     cout << s << endl;
    //     if (!flag) break;
    // }
    // cout << s << endl;

    cout << rst.size() << '\n';
    for (auto [x, y] : rst) cout << x << ' ' << y << '\n';
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3764kb

input:

1

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #2:

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

input:

2

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #3:

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

input:

3

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #4:

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

input:

4

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #5:

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

input:

5

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #6:

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

input:

6

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #7:

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

input:

7

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #8:

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

input:

8

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #9:

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

input:

9

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #10:

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

input:

10

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #11:

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

input:

11

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #12:

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

input:

12

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #13:

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

input:

13

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #14:

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

input:

14

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #15:

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

input:

15

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #16:

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

input:

16

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #17:

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

input:

17

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #18:

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

input:

18

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #19:

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

input:

19

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #20:

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

input:

20

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #21:

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

input:

21

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #22:

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

input:

22

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #23:

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

input:

23

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #24:

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

input:

24

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #25:

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

input:

25

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #26:

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

input:

26

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #27:

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

input:

27

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #28:

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

input:

28

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #29:

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

input:

29

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #30:

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

input:

30

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #31:

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

input:

31

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #32:

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

input:

32

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #33:

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

input:

33

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #34:

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

input:

34

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #35:

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

input:

35

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #36:

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

input:

36

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #37:

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

input:

37

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #38:

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

input:

38

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #39:

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

input:

39

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #40:

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

input:

40

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #41:

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

input:

41

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #42:

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

input:

42

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #43:

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

input:

43

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #44:

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

input:

44

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #45:

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

input:

45

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #46:

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

input:

46

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #47:

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

input:

47

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #48:

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

input:

48

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #49:

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

input:

49

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #50:

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

input:

50

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #51:

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

input:

51

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #52:

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

input:

52

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #53:

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

input:

53

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #54:

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

input:

54

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #55:

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

input:

55

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #56:

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

input:

56

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #57:

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

input:

57

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #58:

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

input:

58

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #59:

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

input:

59

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #60:

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

input:

60

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #61:

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

input:

61

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #62:

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

input:

62

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #63:

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

input:

63

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #64:

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

input:

64

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #65:

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

input:

65

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #66:

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

input:

66

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #67:

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

input:

67

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #68:

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

input:

68

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #69:

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

input:

69

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #70:

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

input:

70

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #71:

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

input:

71

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #72:

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

input:

72

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #73:

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

input:

73

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #74:

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

input:

74

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #75:

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

input:

75

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #76:

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

input:

76

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #77:

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

input:

77

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #78:

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

input:

78

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #79:

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

input:

79

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #80:

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

input:

80

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #81:

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

input:

81

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #82:

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

input:

82

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #83:

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

input:

83

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #84:

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

input:

84

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #85:

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

input:

85

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #86:

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

input:

86

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #87:

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

input:

87

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #88:

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

input:

88

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #89:

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

input:

89

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #90:

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

input:

90

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #91:

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

input:

91

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #92:

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

input:

92

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #93:

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

input:

93

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #94:

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

input:

94

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #95:

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

input:

95

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #96:

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

input:

96

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #97:

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

input:

97

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #98:

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

input:

98

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #99:

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

input:

99

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #100:

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

input:

100

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #101:

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

input:

101

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #102:

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

input:

102

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #103:

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

input:

103

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #104:

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

input:

104

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #105:

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

input:

105

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #106:

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

input:

106

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #107:

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

input:

107

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #108:

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

input:

108

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #109:

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

input:

109

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #110:

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

input:

110

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #111:

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

input:

111

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #112:

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

input:

112

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #113:

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

input:

113

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #114:

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

input:

114

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #115:

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

input:

115

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #116:

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

input:

116

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #117:

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

input:

117

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #118:

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

input:

118

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #119:

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

input:

119

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #120:

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

input:

120

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #121:

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

input:

121

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #122:

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

input:

122

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #123:

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

input:

123

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #124:

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

input:

124

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #125:

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

input:

125

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #126:

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

input:

126

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #127:

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

input:

127

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #128:

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

input:

128

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #129:

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

input:

129

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #130:

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

input:

130

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #131:

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

input:

131

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #132:

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

input:

132

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #133:

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

input:

133

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #134:

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

input:

134

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #135:

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

input:

135

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #136:

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

input:

136

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #137:

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

input:

137

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #138:

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

input:

138

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #139:

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

input:

139

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #140:

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

input:

140

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #141:

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

input:

141

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #142:

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

input:

142

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #143:

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

input:

143

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #144:

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

input:

144

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #145:

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

input:

145

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #146:

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

input:

146

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #147:

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

input:

147

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #148:

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

input:

148

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #149:

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

input:

149

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!

Test #150:

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

input:

150

output:

40
+ BME
0B B0
1B B1
E0 R0E
E1 R1E
R00 0R0
R01 1R0
R10 0R1
R11 1R1
R0E 0E
R1E 1E
X0 0X
X1 1X
XE EX
Y0 0Y
Y1 1Y
YE EY
0M0 MX
0M1 MY
0ME MXE
1M0 MY
1M1 NX
1ME MYE
BM0 BMX
BM1 BMY
BMEX X
BMEY Y
0N0 MY
0N1 NX
0NE MYE
1N0 NX
1N1 NY
1NE NXE
BN0 BMY
BN1 BNX
BNE Y
X O
Y I
O 0
I 1

result:

ok OK!