QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#140500#4565. Rarest Insectssomethingnew#91.68 34ms4092kbC++204.7kb2023-08-16 00:49:402024-07-04 01:45:17

Judging History

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

  • [2024-07-04 01:45:17]
  • 评测
  • 测评结果:91.68
  • 用时:34ms
  • 内存:4092kb
  • [2023-08-16 00:49:40]
  • 提交

answer

//  ↘ ⬇ ⬇ ⬇ ⬇ ⬇ ↙
//  ➡ @roadfromroi ⬅
//  ↗ ⬆ ⬆ ⬆ ⬆ ⬆ ↖
#include <iostream>
#include "vector"
#include "algorithm"
#include "numeric"
#include "climits"
#include "iomanip"
#include "bitset"
#include "cmath"
#include "map"
#include "deque"
#include "array"
#include "set"
#include "random"
#define all(x) x.begin(), x.end()
using namespace std;
#include "insects.h"
mt19937 rnd;
int min_cardinality(int N) {
    vector<int> iba(N);
    for (int i = 0; i < N; ++i) {
        iba[i] = i;
    }
    vector<int> ex(N);
    int timka = 1;
    for (int i = 0; i < N; ++i) {
        swap(iba[i], iba[rnd() % N]);
    }
    for (int i = 0; i < N; ++i) {
        swap(iba[i], iba[rnd() % N]);
    }
    int cnt = 0;
    int gcnt = 0;
    int prvl = 3;
    int lstch = 0;
    for (int i = 0; i < N; ++i) {
        move_inside(iba[i]);
        if (press_button() == 2) {
            move_outside(iba[i]);
        } else {
            cnt++;
            lstch = i;
            //cerr << "ADD " << i << ' ' << press_button() << endl;
            ex[i] = timka;
        }
    }
    timka++;
    gcnt = cnt * 2;
    cnt = gcnt;
    for (int i = (lstch + 1) % N; i != lstch; i = (i + 1) % N) {
        //cerr << i << endl;
        if (ex[i] == 0) {
            //cerr << i << endl;
            move_inside(iba[i]);
            if (prvl < press_button()) {
                move_outside(iba[i]);
            } else {
                ex[i] = timka;
                cnt--;
                lstch = i;
                if (cnt == 0) {
                    timka++;
                    cnt = gcnt;
                    prvl += 2;
                }
            }
        }
    }
    cnt = gcnt / 2;
    prvl--;
    for (int i = 0; i < N; ++i) {
        if (ex[i] == timka) {
            //cout << i << endl;
            move_outside(iba[i]);

        }
    }
    for (int i = 0; i < N; ++i) {
        if (ex[i] == timka) {
            //cerr << i << endl;
            move_inside(iba[i]);
            if (prvl != press_button()) {
                move_outside(iba[i]);
            } else {
                ex[i] = timka;
                cnt--;
                if (cnt == 0) {
                    prvl++;
                    break;
                }
            }
        }
    }
    return prvl - 1;
}
#ifdef __APPLE__

static inline constexpr int kMaxQueries = 40000;

static int N;
// Insect types are compressed to colors in the range [0, N).
static std::vector<int> color;
static std::vector<bool> in_box;

static std::vector<int> color_occurrences;
static std::multiset<int> max_occurrences;

static std::vector<int> op_counter(3, 0);

static inline void protocol_violation(std::string message) {
    printf("Protocol Violation: %s\n", message.c_str());
    exit(0);
}

void move_inside(int i) {
    if (i < 0 || i >= N) {
        protocol_violation("invalid parameter");
    }
    ++op_counter[0];
    if (op_counter[0] > kMaxQueries) {
        protocol_violation("too many calls");
    }
    if (!in_box[i]) {
        in_box[i] = true;
        max_occurrences.erase(max_occurrences.find(color_occurrences[color[i]]));
        ++color_occurrences[color[i]];
        max_occurrences.insert(color_occurrences[color[i]]);
    }
}

void move_outside(int i) {
    if (i < 0 || i >= N) {
        protocol_violation("invalid parameter");
    }
    ++op_counter[1];
    if (op_counter[1] > kMaxQueries) {
        protocol_violation("too many calls");
    }
    if (in_box[i]) {
        in_box[i] = false;
        max_occurrences.erase(max_occurrences.find(color_occurrences[color[i]]));
        --color_occurrences[color[i]];
        max_occurrences.insert(color_occurrences[color[i]]);
    }
}

int press_button() {
    ++op_counter[2];
    if (op_counter[2] > kMaxQueries) {
        protocol_violation("too many calls");
    }
    return *(max_occurrences.rbegin());
}

int main() {
    N=2000;//assert(1 == scanf("%d", &N));
    color.resize(N);
    in_box.assign(N, false);

    std::map<int, int> type_to_color;
    for (int i = 0; i < N; ++i) {
        int Ti;
        Ti = i % 6 + 1;
        //assert(1 == scanf("%d", &Ti));
        if (type_to_color.find(Ti) == type_to_color.end()) {
            int new_color = type_to_color.size();
            type_to_color[Ti] = new_color;
            max_occurrences.insert(0);
        }
        color[i] = type_to_color[Ti];
    }

    color_occurrences.assign(type_to_color.size(), 0);

    int answer = min_cardinality(N);
    int Q = *std::max_element(op_counter.begin(), op_counter.end());
    printf("%d\n", answer);
    printf("%d\n", Q);
    return 0;
}
#endif

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 3784kb

input:

6
1
1
2
1
2
2
2
2
3
2
3
2

output:

8
0 0
8
2
8
0 4
8
2
8
0 2
8
2
8
1 2
8
0 1
8
2
8
0 5
8
2
8
1 5
8
0 3
8
2
8
1 3
8
0 5
8
2
8
0 3
8
2
8
0 2
8
2
8
1 2
8
1 5
8
1 3
8
0 2
8
2
8
0 5
8
2
8
1 5
8
0 3
8
2
8
3 1

result:

ok 

Test #2:

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

input:

2
1
2
2
2

output:

8
0 1
8
2
8
0 0
8
2
8
1 0
8
0 0
8
2
8
1 0
8
0 0
8
2
8
3 2

result:

ok 

Test #3:

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

input:

2
1
1

output:

8
0 1
8
2
8
0 0
8
2
8
3 1

result:

ok 

Test #4:

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

input:

3
1
1
2
2
2

output:

8
0 0
8
2
8
0 1
8
2
8
0 2
8
2
8
1 2
8
0 2
8
2
8
1 2
8
0 2
8
2
8
3 1

result:

ok 

Test #5:

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

input:

5
1
1
2
2
2
2
3
3
2
3
2

output:

8
0 4
8
2
8
0 1
8
2
8
0 0
8
2
8
1 0
8
0 3
8
2
8
1 3
8
0 2
8
2
8
1 2
8
0 0
8
2
8
0 3
8
2
8
0 2
8
2
8
1 0
8
1 3
8
1 2
8
0 0
8
2
8
0 3
8
2
8
1 3
8
0 2
8
2
8
3 2

result:

ok 

Test #6:

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

input:

8
1
1
1
2
2
2
2
2
2
2
3
4
4
2
2
3

output:

8
0 7
8
2
8
0 6
8
2
8
0 4
8
2
8
0 2
8
2
8
1 2
8
0 0
8
2
8
1 0
8
0 5
8
2
8
1 5
8
0 3
8
2
8
1 3
8
0 1
8
2
8
1 1
8
0 2
8
2
8
0 0
8
2
8
0 5
8
2
8
0 3
8
2
8
1 3
8
0 1
8
2
8
1 1
8
1 2
8
1 0
8
1 5
8
0 2
8
2
8
0 0
8
2
8
0 5
8
2
8
1 5
8
3 1

result:

ok 

Test #7:

score: 0
Accepted
time: 2ms
memory: 3788kb

input:

199
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 87
8
2
8
0 72
8
2
8
1 72
8
0 105
8
2
8
1 105
8
0 142
8
2
8
1 142
8
0 122
8
2
8
1 122
8
0 71
8
2
8
1 71
8
0 20
8
2
8
1 20
8
0 178
8
2
8
1 178
8
0 13
8
2
8
1 13
8
0 15
8
2
8
1 15
8
0 1
8
2
8
1 1
8
0 49
8
2
8
1 49
8
0 39
8
2
8
1 39
8
0 124
8
2
8
1 124
8
0 21
8
2
8
1 21
8
0 115
8
2
8
1 115
8
0 194
8...

result:

ok 

Test #8:

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

input:

200
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

output:

8
0 189
8
2
8
0 54
8
2
8
0 45
8
2
8
0 174
8
2
8
0 127
8
2
8
0 183
8
2
8
0 195
8
2
8
0 6
8
2
8
0 148
8
2
8
0 111
8
2
8
0 34
8
2
8
0 128
8
2
8
0 133
8
2
8
0 121
8
2
8
0 117
8
2
8
0 36
8
2
8
0 93
8
2
8
0 123
8
2
8
0 124
8
2
8
0 171
8
2
8
0 95
8
2
8
0 29
8
2
8
0 80
8
2
8
0 100
8
2
8
0 15
8
2
8
0 50
8
2
...

result:

ok 

Test #9:

score: 0
Accepted
time: 2ms
memory: 3720kb

input:

200
1
1
1
1
1
2
1
1
1
2
2
1
1
2
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 189
8
2
8
0 54
8
2
8
0 45
8
2
8
0 174
8
2
8
0 127
8
2
8
0 183
8
2
8
1 183
8
0 195
8
2
8
0 6
8
2
8
0 148
8
2
8
0 111
8
2
8
1 111
8
0 34
8
2
8
1 34
8
0 128
8
2
8
0 133
8
2
8
0 121
8
2
8
1 121
8
0 117
8
2
8
0 36
8
2
8
1 36
8
0 93
8
2
8
1 93
8
0 123
8
2
8
1 123
8
0 124
8
2
8
1 124
8
0 171
8
2
8
1 17...

result:

ok 

Test #10:

score: 0
Accepted
time: 2ms
memory: 3716kb

input:

198
1
1
1
1
2
2
1
1
1
2
2
2
1
2
1
2
1
2
2
1
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 22
8
2
8
0 14
8
2
8
0 49
8
2
8
0 120
8
2
8
0 101
8
2
8
1 101
8
0 192
8
2
8
1 192
8
0 121
8
2
8
0 32
8
2
8
0 129
8
2
8
0 138
8
2
8
1 138
8
0 160
8
2
8
1 160
8
0 100
8
2
8
1 100
8
0 184
8
2
8
0 35
8
2
8
1 35
8
0 177
8
2
8
0 168
8
2
8
1 168
8
0 47
8
2
8
0 155
8
2
8
1 155
8
0 143
8
2
8
1 143
8
0 108...

result:

ok 

Test #11:

score: 0
Accepted
time: 2ms
memory: 4032kb

input:

199
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 87
8
2
8
0 72
8
2
8
1 72
8
0 105
8
2
8
1 105
8
0 142
8
2
8
1 142
8
0 122
8
2
8
1 122
8
0 71
8
2
8
1 71
8
0 20
8
2
8
1 20
8
0 178
8
2
8
1 178
8
0 13
8
2
8
1 13
8
0 15
8
2
8
1 15
8
0 1
8
2
8
1 1
8
0 49
8
2
8
1 49
8
0 39
8
2
8
1 39
8
0 124
8
2
8
1 124
8
0 21
8
2
8
1 21
8
0 115
8
2
8
1 115
8
0 194
8...

result:

ok 

Test #12:

score: 0
Accepted
time: 2ms
memory: 4068kb

input:

197
1
2
1
1
1
2
2
1
1
2
2
2
2
1
2
2
1
2
1
1
2
1
1
2
2
2
1
2
2
2
1
1
2
2
1
2
1
2
2
1
2
1
1
2
2
2
1
1
2
1
1
2
1
1
2
2
1
1
1
1
2
2
1
2
1
2
1
2
1
1
2
2
2
1
1
2
2
2
1
1
2
2
2
1
1
1
2
2
1
1
1
2
2
1
2
1
1
1
1
2
2
1
2
2
2
1
2
2
1
1
2
1
1
1
1
1
1
2
2
1
2
1
1
2
2
1
2
1
2
1
1
2
1
2
1
1
2
1
2
2
2
1
2
2
2
1
2
1
...

output:

8
0 60
8
2
8
0 142
8
2
8
1 142
8
0 28
8
2
8
0 71
8
2
8
0 23
8
2
8
0 26
8
2
8
1 26
8
0 97
8
2
8
1 97
8
0 168
8
2
8
0 98
8
2
8
0 83
8
2
8
1 83
8
0 122
8
2
8
1 122
8
0 62
8
2
8
1 62
8
0 102
8
2
8
1 102
8
0 165
8
2
8
0 166
8
2
8
1 166
8
0 41
8
2
8
1 41
8
0 80
8
2
8
0 48
8
2
8
1 48
8
0 134
8
2
8
0 195
8
...

result:

ok 

Test #13:

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

input:

197
1
1
1
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 60
8
2
8
0 142
8
2
8
0 28
8
2
8
0 71
8
2
8
1 71
8
0 23
8
2
8
1 23
8
0 26
8
2
8
0 97
8
2
8
1 97
8
0 168
8
2
8
1 168
8
0 98
8
2
8
1 98
8
0 83
8
2
8
1 83
8
0 122
8
2
8
1 122
8
0 62
8
2
8
1 62
8
0 102
8
2
8
1 102
8
0 165
8
2
8
1 165
8
0 166
8
2
8
1 166
8
0 41
8
2
8
1 41
8
0 80
8
2
8
1 80
8
0 48
8
2
...

result:

ok 

Test #14:

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

input:

198
1
1
1
1
2
2
1
2
1
2
1
1
1
1
2
2
2
2
2
1
1
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 22
8
2
8
0 14
8
2
8
0 49
8
2
8
0 120
8
2
8
0 101
8
2
8
1 101
8
0 192
8
2
8
1 192
8
0 121
8
2
8
0 32
8
2
8
1 32
8
0 129
8
2
8
0 138
8
2
8
1 138
8
0 160
8
2
8
0 100
8
2
8
0 184
8
2
8
0 35
8
2
8
0 177
8
2
8
1 177
8
0 168
8
2
8
1 168
8
0 47
8
2
8
1 47
8
0 155
8
2
8
1 155
8
0 143
8
2
8
1 143
8
0 108
...

result:

ok 

Test #15:

score: 0
Accepted
time: 3ms
memory: 4076kb

input:

200
1
2
1
1
2
2
1
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 189
8
2
8
0 54
8
2
8
1 54
8
0 45
8
2
8
0 174
8
2
8
0 127
8
2
8
1 127
8
0 183
8
2
8
1 183
8
0 195
8
2
8
0 6
8
2
8
1 6
8
0 148
8
2
8
1 148
8
0 111
8
2
8
1 111
8
0 34
8
2
8
0 128
8
2
8
1 128
8
0 133
8
2
8
1 133
8
0 121
8
2
8
1 121
8
0 117
8
2
8
1 117
8
0 36
8
2
8
1 36
8
0 93
8
2
8
1 93
8
0 123
8
2
...

result:

ok 

Test #16:

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

input:

196
1
1
2
1
1
1
2
2
2
1
2
2
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 92
8
2
8
0 127
8
2
8
0 33
8
2
8
1 33
8
0 143
8
2
8
0 148
8
2
8
0 188
8
2
8
0 116
8
2
8
1 116
8
0 115
8
2
8
1 115
8
0 12
8
2
8
1 12
8
0 166
8
2
8
0 7
8
2
8
1 7
8
0 159
8
2
8
1 159
8
0 11
8
2
8
0 36
8
2
8
1 36
8
0 137
8
2
8
0 44
8
2
8
1 44
8
0 186
8
2
8
1 186
8
0 49
8
2
8
1 49
8
0 185
8
2
8
1 185
...

result:

ok 

Test #17:

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

input:

199
1
1
2
1
2
1
1
2
2
2
2
2
2
1
1
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
1
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 87
8
2
8
0 72
8
2
8
0 105
8
2
8
1 105
8
0 142
8
2
8
0 122
8
2
8
1 122
8
0 71
8
2
8
0 20
8
2
8
0 178
8
2
8
1 178
8
0 13
8
2
8
1 13
8
0 15
8
2
8
1 15
8
0 1
8
2
8
1 1
8
0 49
8
2
8
1 49
8
0 39
8
2
8
1 39
8
0 124
8
2
8
0 21
8
2
8
0 115
8
2
8
1 115
8
0 194
8
2
8
1 194
8
0 169
8
2
8
1 169
8
0 172
8
2
8...

result:

ok 

Test #18:

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

input:

196
1
1
1
1
1
2
2
1
1
2
1
2
2
1
2
2
2
1
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 92
8
2
8
0 127
8
2
8
0 33
8
2
8
0 143
8
2
8
0 148
8
2
8
0 188
8
2
8
1 188
8
0 116
8
2
8
1 116
8
0 115
8
2
8
0 12
8
2
8
0 166
8
2
8
1 166
8
0 7
8
2
8
0 159
8
2
8
1 159
8
0 11
8
2
8
1 11
8
0 36
8
2
8
0 137
8
2
8
1 137
8
0 44
8
2
8
1 44
8
0 186
8
2
8
1 186
8
0 49
8
2
8
0 185
8
2
8
1 185
8
0 56
8
2
...

result:

ok 

Test #19:

score: 0
Accepted
time: 3ms
memory: 3784kb

input:

196
1
1
2
1
1
2
1
2
2
2
1
2
1
2
2
1
2
1
1
2
1
2
2
2
2
2
2
2
1
2
2
2
2
2
1
2
2
2
2
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 92
8
2
8
0 127
8
2
8
0 33
8
2
8
1 33
8
0 143
8
2
8
0 148
8
2
8
0 188
8
2
8
1 188
8
0 116
8
2
8
0 115
8
2
8
1 115
8
0 12
8
2
8
1 12
8
0 166
8
2
8
1 166
8
0 7
8
2
8
0 159
8
2
8
1 159
8
0 11
8
2
8
0 36
8
2
8
1 36
8
0 137
8
2
8
1 137
8
0 44
8
2
8
0 186
8
2
8
1 186
8
0 49
8
2
8
0 185
8
2
8
0 56
8
2
8...

result:

ok 

Test #20:

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

input:

196
1
1
1
2
1
1
2
1
1
1
1
2
2
2
1
1
2
1
2
2
1
2
2
2
2
2
2
2
1
2
1
1
1
2
2
2
1
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 92
8
2
8
0 127
8
2
8
0 33
8
2
8
0 143
8
2
8
1 143
8
0 148
8
2
8
0 188
8
2
8
0 116
8
2
8
1 116
8
0 115
8
2
8
0 12
8
2
8
0 166
8
2
8
0 7
8
2
8
0 159
8
2
8
1 159
8
0 11
8
2
8
1 11
8
0 36
8
2
8
1 36
8
0 137
8
2
8
0 44
8
2
8
0 186
8
2
8
1 186
8
0 49
8
2
8
0 185
8
2
8
1 185
8
0 56
8
2
8
1 56
8
0 182
8...

result:

ok 

Test #21:

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

input:

200
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
2
1
2
2
1
1
1
1
1
1
1
1
2
2
1
2
2
2
1
1
2
2
2
2
1
2
1
2
1
1
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
1
2
2
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
1
2
1
2
2
2
1
2
2
2
2
1
2
2
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
1
1
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
1
2
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
1
...

output:

8
0 189
8
2
8
0 54
8
2
8
0 45
8
2
8
0 174
8
2
8
0 127
8
2
8
0 183
8
2
8
0 195
8
2
8
0 6
8
2
8
0 148
8
2
8
0 111
8
2
8
0 34
8
2
8
0 128
8
2
8
1 128
8
0 133
8
2
8
0 121
8
2
8
0 117
8
2
8
0 36
8
2
8
0 93
8
2
8
1 93
8
0 123
8
2
8
0 124
8
2
8
1 124
8
0 171
8
2
8
1 171
8
0 95
8
2
8
0 29
8
2
8
0 80
8
2
8
0...

result:

ok 

Test #22:

score: 0
Accepted
time: 3ms
memory: 3784kb

input:

199
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
2
1
2
1
1
2
1
2
1
2
1
1
1
1
1
1
1
1
1
2
1
1
2
2
2
1
1
2
2
1
1
2
2
2
1
1
1
2
2
1
2
1
1
2
1
1
1
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
1
2
1
1
2
2
1
1
2
1
2
1
2
2
1
2
2
1
1
1
1
2
1
2
2
2
2
1
1
1
2
2
2
2
1
2
1
2
2
1
2
2
2
2
2
2
2
2
1
2
1
2
1
2
2
1
1
2
2
2
2
1
1
...

output:

8
0 87
8
2
8
0 72
8
2
8
0 105
8
2
8
0 142
8
2
8
0 122
8
2
8
0 71
8
2
8
0 20
8
2
8
0 178
8
2
8
0 13
8
2
8
0 15
8
2
8
0 1
8
2
8
0 49
8
2
8
0 39
8
2
8
0 124
8
2
8
0 21
8
2
8
0 115
8
2
8
0 194
8
2
8
0 169
8
2
8
0 172
8
2
8
0 188
8
2
8
0 93
8
2
8
1 93
8
0 185
8
2
8
0 0
8
2
8
0 195
8
2
8
1 195
8
0 85
8
2
...

result:

ok 

Test #23:

score: 0
Accepted
time: 2ms
memory: 3780kb

input:

198
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
2
1
1
1
2
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
2
1
1
2
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
1
2
2
2
1
1
2
1
1
1
1
1
1
2
1
1
1
2
1
1
1
1
1
1
1
1
1
2
2
2
2
1
1
1
2
1
2
1
2
2
1
1
1
1
1
2
2
1
1
1
2
2
2
2
2
1
2
2
2
1
2
2
2
2
1
1
2
2
1
1
1
2
2
2
1
1
1
...

output:

8
0 22
8
2
8
0 14
8
2
8
0 49
8
2
8
0 120
8
2
8
0 101
8
2
8
0 192
8
2
8
0 121
8
2
8
0 32
8
2
8
0 129
8
2
8
0 138
8
2
8
0 160
8
2
8
0 100
8
2
8
0 184
8
2
8
0 35
8
2
8
0 177
8
2
8
0 168
8
2
8
0 47
8
2
8
0 155
8
2
8
0 143
8
2
8
0 108
8
2
8
0 105
8
2
8
1 105
8
0 12
8
2
8
0 7
8
2
8
0 76
8
2
8
0 21
8
2
8
0...

result:

ok 

Subtask #2:

score: 15
Accepted

Test #24:

score: 15
Accepted
time: 4ms
memory: 3852kb

input:

1000
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 299
8
2
8
0 482
8
2
8
1 482
8
0 920
8
2
8
1 920
8
0 90
8
2
8
1 90
8
0 125
8
2
8
1 125
8
0 76
8
2
8
1 76
8
0 561
8
2
8
1 561
8
0 357
8
2
8
1 357
8
0 982
8
2
8
1 982
8
0 987
8
2
8
1 987
8
0 706
8
2
8
1 706
8
0 40
8
2
8
1 40
8
0 854
8
2
8
1 854
8
0 111
8
2
8
1 111
8
0 721
8
2
8
1 721
8
0 693
8
2
8
...

result:

ok 

Test #25:

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

input:

1000
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1...

output:

8
0 299
8
2
8
0 482
8
2
8
0 920
8
2
8
0 90
8
2
8
0 125
8
2
8
0 76
8
2
8
0 561
8
2
8
0 357
8
2
8
0 982
8
2
8
0 987
8
2
8
0 706
8
2
8
0 40
8
2
8
0 854
8
2
8
0 111
8
2
8
0 721
8
2
8
0 693
8
2
8
0 924
8
2
8
0 281
8
2
8
0 385
8
2
8
0 966
8
2
8
0 849
8
2
8
0 810
8
2
8
0 152
8
2
8
0 615
8
2
8
0 424
8
2
8
0...

result:

ok 

Test #26:

score: 0
Accepted
time: 9ms
memory: 4080kb

input:

999
1
1
2
2
1
1
1
1
2
1
1
1
1
2
1
2
2
2
1
1
1
1
1
1
1
2
2
2
2
2
1
2
2
2
1
1
2
1
2
2
2
2
2
2
2
1
2
2
2
1
1
2
1
1
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 514
8
2
8
0 96
8
2
8
0 100
8
2
8
1 100
8
0 105
8
2
8
1 105
8
0 409
8
2
8
0 538
8
2
8
0 618
8
2
8
0 245
8
2
8
0 883
8
2
8
1 883
8
0 363
8
2
8
0 628
8
2
8
0 150
8
2
8
0 489
8
2
8
0 148
8
2
8
1 148
8
0 322
8
2
8
0 256
8
2
8
1 256
8
0 145
8
2
8
1 145
8
0 269
8
2
8
1 269
8
0 251
8
2
8
0 820
8
2
8
0 4...

result:

ok 

Test #27:

score: 0
Accepted
time: 10ms
memory: 3784kb

input:

999
1
2
1
1
1
1
1
1
2
1
2
1
1
2
2
2
1
1
1
2
1
2
1
1
2
2
1
1
1
1
1
1
2
1
2
1
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 514
8
2
8
0 96
8
2
8
1 96
8
0 100
8
2
8
0 105
8
2
8
0 409
8
2
8
0 538
8
2
8
0 618
8
2
8
0 245
8
2
8
0 883
8
2
8
1 883
8
0 363
8
2
8
0 628
8
2
8
1 628
8
0 150
8
2
8
0 489
8
2
8
0 148
8
2
8
1 148
8
0 322
8
2
8
1 322
8
0 256
8
2
8
1 256
8
0 145
8
2
8
0 269
8
2
8
0 251
8
2
8
0 820
8
2
8
1 820
8
0 44...

result:

ok 

Test #28:

score: 0
Accepted
time: 2ms
memory: 3788kb

input:

996
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 68
8
2
8
0 108
8
2
8
1 108
8
0 568
8
2
8
1 568
8
0 613
8
2
8
1 613
8
0 934
8
2
8
1 934
8
0 540
8
2
8
1 540
8
0 785
8
2
8
1 785
8
0 288
8
2
8
1 288
8
0 869
8
2
8
1 869
8
0 936
8
2
8
1 936
8
0 354
8
2
8
1 354
8
0 927
8
2
8
1 927
8
0 827
8
2
8
1 827
8
0 692
8
2
8
1 692
8
0 513
8
2
8
1 513
8
0 243
8...

result:

ok 

Test #29:

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

input:

995
1
1
1
1
1
1
2
1
2
2
2
1
1
1
1
2
2
1
1
1
1
1
2
2
2
1
2
1
1
2
2
2
2
2
1
1
1
1
2
1
2
1
2
2
1
1
1
2
2
1
1
1
1
1
1
2
2
2
2
2
1
2
2
1
2
2
1
1
1
2
1
1
2
2
1
2
2
1
1
1
2
2
1
2
2
2
1
1
2
2
2
1
1
2
2
2
1
1
1
1
2
1
1
2
1
2
1
1
2
1
2
1
2
1
2
1
2
2
2
1
1
1
2
2
2
2
1
2
2
1
2
1
2
2
1
1
1
2
1
2
1
1
2
1
2
2
2
2
...

output:

8
0 191
8
2
8
0 856
8
2
8
0 92
8
2
8
0 198
8
2
8
0 893
8
2
8
0 71
8
2
8
0 618
8
2
8
1 618
8
0 209
8
2
8
0 35
8
2
8
1 35
8
0 933
8
2
8
1 933
8
0 108
8
2
8
1 108
8
0 277
8
2
8
0 174
8
2
8
0 555
8
2
8
0 176
8
2
8
0 234
8
2
8
1 234
8
0 195
8
2
8
1 195
8
0 328
8
2
8
0 490
8
2
8
0 392
8
2
8
0 471
8
2
8
0 ...

result:

ok 

Test #30:

score: 0
Accepted
time: 3ms
memory: 3792kb

input:

998
1
1
1
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 515
8
2
8
0 220
8
2
8
0 424
8
2
8
0 847
8
2
8
1 847
8
0 985
8
2
8
1 985
8
0 910
8
2
8
1 910
8
0 834
8
2
8
1 834
8
0 566
8
2
8
1 566
8
0 122
8
2
8
1 122
8
0 909
8
2
8
0 132
8
2
8
1 132
8
0 558
8
2
8
1 558
8
0 864
8
2
8
1 864
8
0 359
8
2
8
1 359
8
0 501
8
2
8
1 501
8
0 642
8
2
8
1 642
8
0 350
8
2
...

result:

ok 

Test #31:

score: 0
Accepted
time: 5ms
memory: 4044kb

input:

998
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
2
2
1
1
2
1
2
2
2
2
2
1
2
1
1
1
1
2
1
2
1
2
2
2
2
2
2
2
2
1
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 515
8
2
8
0 220
8
2
8
0 424
8
2
8
0 847
8
2
8
0 985
8
2
8
0 910
8
2
8
0 834
8
2
8
1 834
8
0 566
8
2
8
0 122
8
2
8
0 909
8
2
8
0 132
8
2
8
0 558
8
2
8
0 864
8
2
8
0 359
8
2
8
0 501
8
2
8
0 642
8
2
8
1 642
8
0 350
8
2
8
1 350
8
0 940
8
2
8
0 603
8
2
8
0 967
8
2
8
1 967
8
0 405
8
2
8
0 978
8
2
8
1 ...

result:

ok 

Test #32:

score: 0
Accepted
time: 3ms
memory: 4068kb

input:

1000
1
2
1
2
2
1
2
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 299
8
2
8
0 482
8
2
8
1 482
8
0 920
8
2
8
0 90
8
2
8
1 90
8
0 125
8
2
8
1 125
8
0 76
8
2
8
0 561
8
2
8
1 561
8
0 357
8
2
8
0 982
8
2
8
1 982
8
0 987
8
2
8
0 706
8
2
8
1 706
8
0 40
8
2
8
1 40
8
0 854
8
2
8
1 854
8
0 111
8
2
8
1 111
8
0 721
8
2
8
1 721
8
0 693
8
2
8
1 693
8
0 924
8
2
8
1 924
8
0 2...

result:

ok 

Test #33:

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

input:

996
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 68
8
2
8
0 108
8
2
8
0 568
8
2
8
0 613
8
2
8
0 934
8
2
8
0 540
8
2
8
0 785
8
2
8
0 288
8
2
8
1 288
8
0 869
8
2
8
1 869
8
0 936
8
2
8
1 936
8
0 354
8
2
8
1 354
8
0 927
8
2
8
1 927
8
0 827
8
2
8
1 827
8
0 692
8
2
8
1 692
8
0 513
8
2
8
1 513
8
0 243
8
2
8
1 243
8
0 19
8
2
8
1 19
8
0 287
8
2
8
1 287...

result:

ok 

Test #34:

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

input:

1000
1
1
2
2
1
2
2
1
2
1
2
1
1
2
2
1
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 299
8
2
8
0 482
8
2
8
0 920
8
2
8
1 920
8
0 90
8
2
8
1 90
8
0 125
8
2
8
0 76
8
2
8
1 76
8
0 561
8
2
8
1 561
8
0 357
8
2
8
0 982
8
2
8
1 982
8
0 987
8
2
8
0 706
8
2
8
1 706
8
0 40
8
2
8
0 854
8
2
8
0 111
8
2
8
1 111
8
0 721
8
2
8
1 721
8
0 693
8
2
8
0 924
8
2
8
1 924
8
0 281
8
2
8
1 281
8
0 385
8...

result:

ok 

Test #35:

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

input:

1000
1
1
1
1
2
1
2
1
2
1
2
2
1
2
2
2
2
2
1
2
2
2
1
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 299
8
2
8
0 482
8
2
8
0 920
8
2
8
0 90
8
2
8
0 125
8
2
8
1 125
8
0 76
8
2
8
0 561
8
2
8
1 561
8
0 357
8
2
8
0 982
8
2
8
1 982
8
0 987
8
2
8
0 706
8
2
8
1 706
8
0 40
8
2
8
1 40
8
0 854
8
2
8
0 111
8
2
8
1 111
8
0 721
8
2
8
1 721
8
0 693
8
2
8
1 693
8
0 924
8
2
8
1 924
8
0 281
8
2
8
1 281
8
0 385
...

result:

ok 

Test #36:

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

input:

997
1
1
1
1
2
1
2
2
1
2
1
2
1
1
2
1
1
2
2
1
1
1
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 731
8
2
8
0 532
8
2
8
0 192
8
2
8
0 681
8
2
8
0 534
8
2
8
1 534
8
0 482
8
2
8
0 11
8
2
8
1 11
8
0 107
8
2
8
1 107
8
0 316
8
2
8
0 563
8
2
8
1 563
8
0 658
8
2
8
0 920
8
2
8
1 920
8
0 394
8
2
8
0 99
8
2
8
0 599
8
2
8
1 599
8
0 347
8
2
8
0 523
8
2
8
0 442
8
2
8
1 442
8
0 761
8
2
8
1 761
8
0 638
8
2...

result:

ok 

Test #37:

score: 0
Accepted
time: 13ms
memory: 3848kb

input:

995
1
1
1
1
1
1
1
2
2
1
2
1
1
2
1
2
2
1
2
1
2
2
2
1
2
1
2
2
2
2
2
2
1
2
2
2
1
2
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 191
8
2
8
0 856
8
2
8
0 92
8
2
8
0 198
8
2
8
0 893
8
2
8
0 71
8
2
8
0 618
8
2
8
0 209
8
2
8
1 209
8
0 35
8
2
8
1 35
8
0 933
8
2
8
0 108
8
2
8
1 108
8
0 277
8
2
8
0 174
8
2
8
0 555
8
2
8
1 555
8
0 176
8
2
8
0 234
8
2
8
1 234
8
0 195
8
2
8
1 195
8
0 328
8
2
8
0 490
8
2
8
1 490
8
0 392
8
2
8
0 471
...

result:

ok 

Test #38:

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

input:

997
1
1
1
1
1
1
1
2
1
2
1
1
1
2
2
2
1
1
1
1
1
1
1
1
1
1
2
2
1
2
2
2
2
1
2
1
2
1
2
1
2
2
2
1
1
1
2
1
2
1
2
2
1
2
1
2
2
2
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
1
2
2
2
2
1
2
2
2
2
2
2
1
2
2
2
1
2
1
1
2
2
1
2
2
2
2
2
1
1
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 731
8
2
8
0 532
8
2
8
0 192
8
2
8
0 681
8
2
8
0 534
8
2
8
0 482
8
2
8
0 11
8
2
8
0 107
8
2
8
1 107
8
0 316
8
2
8
0 563
8
2
8
1 563
8
0 658
8
2
8
0 920
8
2
8
0 394
8
2
8
0 99
8
2
8
1 99
8
0 599
8
2
8
1 599
8
0 347
8
2
8
1 347
8
0 523
8
2
8
0 442
8
2
8
0 761
8
2
8
0 638
8
2
8
0 278
8
2
8
0 842
8
2...

result:

ok 

Test #39:

score: 0
Accepted
time: 12ms
memory: 3848kb

input:

997
1
1
1
1
1
2
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
2
1
2
1
1
1
2
1
1
2
1
1
1
2
1
2
1
1
1
2
1
1
2
1
2
1
2
2
1
1
2
1
1
1
2
2
1
2
2
1
2
2
1
1
2
1
1
1
2
1
1
2
2
1
1
2
1
1
1
1
1
1
2
2
2
2
1
1
1
1
1
2
2
1
2
1
1
1
2
2
2
2
2
2
1
1
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
1
2
1
2
2
2
2
2
2
1
1
2
2
2
2
2
2
2
2
2
1
1
2
2
...

output:

8
0 731
8
2
8
0 532
8
2
8
0 192
8
2
8
0 681
8
2
8
0 534
8
2
8
0 482
8
2
8
1 482
8
0 11
8
2
8
0 107
8
2
8
0 316
8
2
8
0 563
8
2
8
0 658
8
2
8
0 920
8
2
8
0 394
8
2
8
0 99
8
2
8
1 99
8
0 599
8
2
8
0 347
8
2
8
0 523
8
2
8
0 442
8
2
8
0 761
8
2
8
0 638
8
2
8
0 278
8
2
8
0 842
8
2
8
0 313
8
2
8
0 671
8
2...

result:

ok 

Test #40:

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

input:

996
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
1
2
1
2
2
1
1
2
1
2
1
1
1
1
1
1
1
1
1
2
2
1
1
1
1
1
1
1
2
2
2
1
1
1
1
1
2
1
2
1
1
1
2
2
2
1
1
1
1
2
1
1
1
2
2
2
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
2
1
1
1
2
2
2
1
2
1
1
2
2
2
2
1
2
2
1
1
2
2
1
2
1
2
1
1
1
1
2
1
2
2
2
1
1
...

output:

8
0 68
8
2
8
0 108
8
2
8
0 568
8
2
8
0 613
8
2
8
0 934
8
2
8
0 540
8
2
8
0 785
8
2
8
0 288
8
2
8
0 869
8
2
8
0 936
8
2
8
0 354
8
2
8
0 927
8
2
8
0 827
8
2
8
0 692
8
2
8
1 692
8
0 513
8
2
8
0 243
8
2
8
0 19
8
2
8
0 287
8
2
8
0 63
8
2
8
0 336
8
2
8
0 818
8
2
8
0 125
8
2
8
0 310
8
2
8
0 805
8
2
8
0 628...

result:

ok 

Test #41:

score: 0
Accepted
time: 7ms
memory: 4072kb

input:

995
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
2
1
1
1
2
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
2
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
2
1
1
1
1
1
1
2
1
1
1
1
1
1
1
2
1
1
1
1
1
2
1
1
1
1
1
1
2
1
1
1
1
2
1
1
2
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
2
2
2
1
...

output:

8
0 191
8
2
8
0 856
8
2
8
0 92
8
2
8
0 198
8
2
8
0 893
8
2
8
0 71
8
2
8
0 618
8
2
8
0 209
8
2
8
0 35
8
2
8
0 933
8
2
8
0 108
8
2
8
0 277
8
2
8
0 174
8
2
8
0 555
8
2
8
0 176
8
2
8
1 176
8
0 234
8
2
8
0 195
8
2
8
0 328
8
2
8
0 490
8
2
8
0 392
8
2
8
0 471
8
2
8
0 934
8
2
8
0 335
8
2
8
0 522
8
2
8
0 661...

result:

ok 

Test #42:

score: 0
Accepted
time: 3ms
memory: 4076kb

input:

995
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
1
2
1
1
1
2
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
...

output:

8
0 191
8
2
8
0 856
8
2
8
0 92
8
2
8
0 198
8
2
8
0 893
8
2
8
0 71
8
2
8
0 618
8
2
8
0 209
8
2
8
0 35
8
2
8
0 933
8
2
8
0 108
8
2
8
0 277
8
2
8
0 174
8
2
8
0 555
8
2
8
0 176
8
2
8
0 234
8
2
8
0 195
8
2
8
0 328
8
2
8
0 490
8
2
8
0 392
8
2
8
0 471
8
2
8
0 934
8
2
8
0 335
8
2
8
0 522
8
2
8
0 661
8
2
8
0...

result:

ok 

Subtask #3:

score: 66.68
Acceptable Answer

Test #43:

score: 75
Accepted
time: 1ms
memory: 3784kb

input:

2
1
2
2
2

output:

8
0 1
8
2
8
0 0
8
2
8
1 0
8
0 0
8
2
8
1 0
8
0 0
8
2
8
3 2

result:

ok 

Test #44:

score: 75
Accepted
time: 1ms
memory: 3776kb

input:

2
1
1

output:

8
0 1
8
2
8
0 0
8
2
8
3 1

result:

ok 

Test #45:

score: 75
Accepted
time: 1ms
memory: 3860kb

input:

3
1
1
2
2
2

output:

8
0 0
8
2
8
0 1
8
2
8
0 2
8
2
8
1 2
8
0 2
8
2
8
1 2
8
0 2
8
2
8
3 1

result:

ok 

Test #46:

score: 75
Accepted
time: 1ms
memory: 3780kb

input:

6
1
2
1
2
2
2
2
3
4
4
2
3

output:

8
0 0
8
2
8
0 4
8
2
8
1 4
8
0 2
8
2
8
0 1
8
2
8
1 1
8
0 5
8
2
8
1 5
8
0 3
8
2
8
1 3
8
0 1
8
2
8
0 5
8
2
8
0 3
8
2
8
1 3
8
0 4
8
2
8
1 4
8
1 1
8
1 5
8
0 1
8
2
8
0 5
8
2
8
1 5
8
3 1

result:

ok 

Test #47:

score: 75
Accepted
time: 1ms
memory: 4068kb

input:

10
1
2
2
1
2
2
2
2
2
2
2
3
4
4
4
3
3
4
4
5
6
4
4

output:

8
0 3
8
2
8
0 2
8
2
8
1 2
8
0 7
8
2
8
1 7
8
0 9
8
2
8
0 0
8
2
8
1 0
8
0 4
8
2
8
1 4
8
0 6
8
2
8
1 6
8
0 8
8
2
8
1 8
8
0 5
8
2
8
1 5
8
0 1
8
2
8
1 1
8
0 0
8
2
8
0 4
8
2
8
0 6
8
2
8
1 6
8
0 8
8
2
8
1 8
8
0 5
8
2
8
1 5
8
0 1
8
2
8
0 2
8
2
8
0 7
8
2
8
0 6
8
2
8
0 8
8
2
8
0 5
8
2
8
1 5
8
1 7
8
1 6
8
1 8
...

result:

ok 

Test #48:

score: 75
Accepted
time: 5ms
memory: 3784kb

input:

2000
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
1 895
8
0 774
8
2
8
1 774
8
0 44
8
2
8
1 44
8
0 679
8
2
8
1 679
8
0 702
8
2
8
1 702
8
0 1716
8
2
8
1 1716
8
0 1580
8
2
8
1 1580
8
0 1574
8
2
8
1 1574
8
0 1558
8
2
8
1 1558
8
0 870
8
2
8
1 870
8
0 1547
8
2
8
1 1547
8
0 730
8
2
8
1 730
8
0 182
8
2
8
1 182
8
0 881
8
2
8
1 881
...

result:

ok 

Test #49:

score: 75
Accepted
time: 10ms
memory: 4080kb

input:

2000
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
0 1558
8
2
8
0 870
8
2
8
0 1547
8
2
8
0 730
8
2
8
0 182
8
2
8
0 881
8
2
8
0 20
8
2
8
0 719
8
2
8
0 643
8
2
8
0 1112
8
2
8
0 405
8
2
8
0 213
8
2
8
0 1683
8
2
8
0 1409
8
2
8
0 1130
8
2
8
0 1...

result:

ok 

Test #50:

score: 68.25
Acceptable Answer
time: 10ms
memory: 3732kb

input:

2000
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
2
1
2
1
1
1
1
2
2
1
2
1
2
1
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
1
2
1
2
2
2
2
1
2
2
2
2
1
2
2
2
2
2
2
2
1
1
1
2
2
2
2
2
2
1
2
2
2
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
1 44
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
0 1558
8
2
8
0 870
8
2
8
0 1547
8
2
8
0 730
8
2
8
0 182
8
2
8
0 881
8
2
8
0 20
8
2
8
0 719
8
2
8
0 643
8
2
8
1 643
8
0 1112
8
2
8
0 405
8
2
8
1 405
8
0 213
8
2
8
0 1683
8
2
8
1 1683...

result:

points 0.910 points  0.910

Test #51:

score: 69.07
Acceptable Answer
time: 34ms
memory: 3828kb

input:

2000
1
1
1
1
1
1
1
1
2
2
1
1
1
1
2
1
2
2
1
1
1
1
1
2
2
1
2
1
2
2
1
2
1
1
2
2
1
1
1
2
2
1
2
2
2
1
2
2
2
1
2
2
1
1
2
1
2
1
2
2
1
2
1
2
2
2
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
1
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
1 1574
8
0 1558
8
2
8
1 1558
8
0 870
8
2
8
0 1547
8
2
8
0 730
8
2
8
0 182
8
2
8
0 881
8
2
8
1 881
8
0 20
8
2
8
0 719
8
2
8
1 719
8
0 643
8
2
8
1 643
8
0 1112
8
2
8
0 405
8
2
8
0 213
8
2
8
...

result:

points 0.92093333330 points  0.92093333330

Test #52:

score: 75
Accepted
time: 12ms
memory: 3800kb

input:

2000
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
1 895
8
0 774
8
2
8
1 774
8
0 44
8
2
8
1 44
8
0 679
8
2
8
1 679
8
0 702
8
2
8
1 702
8
0 1716
8
2
8
1 1716
8
0 1580
8
2
8
1 1580
8
0 1574
8
2
8
1 1574
8
0 1558
8
2
8
1 1558
8
0 870
8
2
8
1 870
8
0 1547
8
2
8
1 1547
8
0 730
8
2
8
1 730
8
0 182
8
2
8
1 182
8
0 881
8
2
8
1 881
...

result:

ok 

Test #53:

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

input:

2000
1
1
1
2
1
1
2
2
1
1
1
1
2
2
1
2
2
1
1
2
2
2
1
1
2
1
1
1
2
2
2
1
1
2
1
2
2
1
1
1
1
2
2
1
1
2
1
2
1
2
1
2
2
1
1
1
1
1
1
1
1
1
2
1
2
2
1
1
1
2
2
2
2
2
1
1
1
2
1
1
1
2
2
2
2
1
1
1
2
2
1
1
2
1
2
1
1
1
1
2
2
1
2
1
1
1
1
2
1
2
2
1
2
1
2
1
2
2
2
2
2
2
1
1
2
2
2
2
1
1
1
1
2
2
1
2
2
2
2
1
2
2
2
2
2
1
1
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
1 44
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
1 1716
8
0 1580
8
2
8
1 1580
8
0 1574
8
2
8
0 1558
8
2
8
0 870
8
2
8
0 1547
8
2
8
0 730
8
2
8
1 730
8
0 182
8
2
8
1 182
8
0 881
8
2
8
0 20
8
2
8
1 20
8
0 719
8
2
8
1 719
8
0 643
8
2
8
0 1112
8
2
8
0 405
8
2
...

result:

ok 

Test #54:

score: 75
Accepted
time: 3ms
memory: 4092kb

input:

2000
1
1
1
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
1 44
8
0 679
8
2
8
1 679
8
0 702
8
2
8
1 702
8
0 1716
8
2
8
0 1580
8
2
8
1 1580
8
0 1574
8
2
8
1 1574
8
0 1558
8
2
8
1 1558
8
0 870
8
2
8
1 870
8
0 1547
8
2
8
1 1547
8
0 730
8
2
8
1 730
8
0 182
8
2
8
1 182
8
0 881
8
2
8
1 881
8
0 20
8
2
8
1 20
8
0 719...

result:

ok 

Test #55:

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

input:

2000
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
2
1
1
2
1
1
2
1
2
2
1
1
1
2
1
2
1
2
1
2
2
2
2
1
2
2
1
1
2
1
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
0 1558
8
2
8
1 1558
8
0 870
8
2
8
0 1547
8
2
8
0 730
8
2
8
0 182
8
2
8
0 881
8
2
8
0 20
8
2
8
0 719
8
2
8
0 643
8
2
8
0 1112
8
2
8
0 405
8
2
8
0 213
8
2
8
0 1683
8
2
8
1 1683
8
0 1409
8
2
...

result:

ok 

Test #56:

score: 71.36
Acceptable Answer
time: 10ms
memory: 3720kb

input:

1998
1
1
1
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 1879
8
2
8
0 1912
8
2
8
0 244
8
2
8
0 1926
8
2
8
0 1465
8
2
8
1 1465
8
0 1009
8
2
8
1 1009
8
0 92
8
2
8
1 92
8
0 751
8
2
8
1 751
8
0 1709
8
2
8
1 1709
8
0 677
8
2
8
0 777
8
2
8
1 777
8
0 712
8
2
8
1 712
8
0 1698
8
2
8
1 1698
8
0 1065
8
2
8
1 1065
8
0 1550
8
2
8
1 1550
8
0 183
8
2
8
1 183
8
0 628...

result:

points 0.95146666670 points  0.95146666670

Test #57:

score: 69.37
Acceptable Answer
time: 3ms
memory: 4052kb

input:

1999
1
1
1
1
2
2
2
1
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 1704
8
2
8
0 1129
8
2
8
0 70
8
2
8
0 1662
8
2
8
0 1077
8
2
8
1 1077
8
0 266
8
2
8
1 266
8
0 1206
8
2
8
1 1206
8
0 306
8
2
8
0 729
8
2
8
1 729
8
0 1088
8
2
8
1 1088
8
0 1315
8
2
8
1 1315
8
0 677
8
2
8
0 1804
8
2
8
1 1804
8
0 1942
8
2
8
1 1942
8
0 1123
8
2
8
1 1123
8
0 1332
8
2
8
1 1332
8
0 375
8
...

result:

points 0.92493333330 points  0.92493333330

Test #58:

score: 70.23
Acceptable Answer
time: 0ms
memory: 3792kb

input:

1997
1
1
1
1
1
1
2
1
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 1011
8
2
8
0 98
8
2
8
0 620
8
2
8
0 1303
8
2
8
0 951
8
2
8
0 519
8
2
8
0 263
8
2
8
1 263
8
0 266
8
2
8
0 1067
8
2
8
1 1067
8
0 1104
8
2
8
1 1104
8
0 1501
8
2
8
1 1501
8
0 1603
8
2
8
1 1603
8
0 680
8
2
8
1 680
8
0 725
8
2
8
1 725
8
0 1179
8
2
8
1 1179
8
0 1172
8
2
8
1 1172
8
0 1097
8
2
8
1 1097
8...

result:

points 0.93640 points  0.93640

Test #59:

score: 69.23
Acceptable Answer
time: 0ms
memory: 3788kb

input:

1998
1
1
1
1
1
2
1
1
2
1
1
2
2
2
2
2
2
2
1
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 1879
8
2
8
0 1912
8
2
8
0 244
8
2
8
0 1926
8
2
8
0 1465
8
2
8
0 1009
8
2
8
1 1009
8
0 92
8
2
8
0 751
8
2
8
0 1709
8
2
8
1 1709
8
0 677
8
2
8
0 777
8
2
8
0 712
8
2
8
1 712
8
0 1698
8
2
8
1 1698
8
0 1065
8
2
8
1 1065
8
0 1550
8
2
8
1 1550
8
0 183
8
2
8
1 183
8
0 628
8
2
8
1 628
8
0 868
8
2
8
1 868...

result:

points 0.92306666670 points  0.92306666670

Test #60:

score: 67
Acceptable Answer
time: 15ms
memory: 3760kb

input:

1996
1
1
1
2
1
2
1
2
1
1
1
1
2
2
2
1
2
1
2
2
2
1
2
2
2
2
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 1778
8
2
8
0 123
8
2
8
0 1667
8
2
8
0 599
8
2
8
1 599
8
0 1003
8
2
8
0 1477
8
2
8
1 1477
8
0 1801
8
2
8
0 1528
8
2
8
1 1528
8
0 857
8
2
8
0 1757
8
2
8
0 180
8
2
8
0 680
8
2
8
0 1508
8
2
8
1 1508
8
0 879
8
2
8
1 879
8
0 1114
8
2
8
1 1114
8
0 592
8
2
8
0 252
8
2
8
1 252
8
0 1716
8
2
8
0 966
8
2
8
...

result:

points 0.89333333330 points  0.89333333330

Test #61:

score: 66.68
Acceptable Answer
time: 10ms
memory: 3872kb

input:

2000
1
1
1
1
1
1
1
1
2
1
1
2
2
2
2
2
1
2
1
2
1
2
2
2
2
1
2
2
1
2
2
2
2
1
1
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
1 1574
8
0 1558
8
2
8
0 870
8
2
8
0 1547
8
2
8
1 1547
8
0 730
8
2
8
1 730
8
0 182
8
2
8
1 182
8
0 881
8
2
8
1 881
8
0 20
8
2
8
1 20
8
0 719
8
2
8
0 643
8
2
8
1 643
8
0 1112
8
2
8
0 405
8
2...

result:

points 0.88906666670 points  0.88906666670

Test #62:

score: 71.74
Acceptable Answer
time: 0ms
memory: 3780kb

input:

1998
1
1
1
1
2
1
1
1
1
1
1
2
1
1
1
1
1
2
1
1
1
1
1
2
1
2
2
1
2
2
1
1
2
2
2
2
1
2
1
1
2
2
1
1
1
1
1
1
2
1
2
2
2
1
2
2
2
2
2
2
1
2
2
2
1
2
2
2
2
1
2
1
2
1
2
2
2
1
1
2
2
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
1
2
2
2
1
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 1879
8
2
8
0 1912
8
2
8
0 244
8
2
8
0 1926
8
2
8
0 1465
8
2
8
1 1465
8
0 1009
8
2
8
0 92
8
2
8
0 751
8
2
8
0 1709
8
2
8
0 677
8
2
8
0 777
8
2
8
0 712
8
2
8
1 712
8
0 1698
8
2
8
0 1065
8
2
8
0 1550
8
2
8
0 183
8
2
8
0 628
8
2
8
0 868
8
2
8
1 868
8
0 1073
8
2
8
0 1312
8
2
8
0 1730
8
2
8
0 1366
8
2...

result:

points 0.95653333330 points  0.95653333330

Test #63:

score: 72.94
Acceptable Answer
time: 7ms
memory: 3768kb

input:

2000
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
2
2
2
1
1
1
2
2
1
2
1
1
2
1
2
2
2
1
1
2
1
2
2
2
2
1
1
2
2
2
2
2
2
1
2
1
2
2
1
2
2
2
2
2
2
2
2
1
2
2
2
1
1
1
1
2
1
1
2
2
2
1
1
2
2
2
1
2
1
2
2
1
2
1
2
2
2
2
2
2
2
2
1
2
2
2
1
1
2
2
1
2
2
2
2
2
2
1
1...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
0 1558
8
2
8
0 870
8
2
8
0 1547
8
2
8
0 730
8
2
8
1 730
8
0 182
8
2
8
0 881
8
2
8
0 20
8
2
8
0 719
8
2
8
0 643
8
2
8
0 1112
8
2
8
0 405
8
2
8
0 213
8
2
8
0 1683
8
2
8
1 1683
8
0 1409
8
2
8...

result:

points 0.97253333330 points  0.97253333330

Test #64:

score: 75
Accepted
time: 7ms
memory: 3804kb

input:

1995
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
2
1
2
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
2
2
1
2
1
1
1
2
1
1
2
1
1
2
1
1
1
1
1
1
1
1
2
1
1
1
1
1
2
1
1
2
1
1
2
2
1
2
1
1
1
1
2
1
1
2
2
2
1
1
2
2
1
1
2
1
1
1
2
1
2
1
1
2
1
1
2
1
2
1
2
1
1
1
2
1
2
1
1
2
1
2
1
2
2
2
1
1
2
2
2...

output:

8
0 125
8
2
8
0 1225
8
2
8
0 916
8
2
8
0 1199
8
2
8
0 1301
8
2
8
0 114
8
2
8
0 1503
8
2
8
0 182
8
2
8
0 1327
8
2
8
0 774
8
2
8
0 811
8
2
8
0 296
8
2
8
0 670
8
2
8
1 670
8
0 1116
8
2
8
0 180
8
2
8
0 64
8
2
8
0 1352
8
2
8
0 827
8
2
8
0 23
8
2
8
0 817
8
2
8
0 1064
8
2
8
0 889
8
2
8
0 1449
8
2
8
0 72
8
...

result:

ok 

Test #65:

score: 75
Accepted
time: 6ms
memory: 4084kb

input:

1999
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
2
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
1
1
1
1
1
1
1
1
1
1
2
1
1
1
2
1
1
1
1
1
1
1
2
1
2
1
1
1
1
1
1
2
1
1
1
2
1
1
1...

output:

8
0 1704
8
2
8
0 1129
8
2
8
0 70
8
2
8
0 1662
8
2
8
0 1077
8
2
8
0 266
8
2
8
0 1206
8
2
8
0 306
8
2
8
0 729
8
2
8
0 1088
8
2
8
0 1315
8
2
8
0 677
8
2
8
0 1804
8
2
8
0 1942
8
2
8
0 1123
8
2
8
0 1332
8
2
8
0 375
8
2
8
0 817
8
2
8
0 1267
8
2
8
0 1608
8
2
8
0 1860
8
2
8
0 1020
8
2
8
0 48
8
2
8
0 1527
8
...

result:

ok 

Test #66:

score: 75
Accepted
time: 9ms
memory: 4080kb

input:

1998
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
2
1
1
2
1
1
1
1
1
1
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
2...

output:

8
0 1879
8
2
8
0 1912
8
2
8
0 244
8
2
8
0 1926
8
2
8
0 1465
8
2
8
0 1009
8
2
8
0 92
8
2
8
0 751
8
2
8
0 1709
8
2
8
0 677
8
2
8
0 777
8
2
8
0 712
8
2
8
0 1698
8
2
8
0 1065
8
2
8
0 1550
8
2
8
0 183
8
2
8
0 628
8
2
8
0 868
8
2
8
0 1073
8
2
8
0 1312
8
2
8
0 1730
8
2
8
0 1366
8
2
8
0 1980
8
2
8
0 1493
8
...

result:

ok 

Test #67:

score: 75
Accepted
time: 10ms
memory: 3784kb

input:

1999
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
2
1
1
1
1
1...

output:

8
0 1704
8
2
8
0 1129
8
2
8
0 70
8
2
8
0 1662
8
2
8
0 1077
8
2
8
0 266
8
2
8
0 1206
8
2
8
0 306
8
2
8
0 729
8
2
8
0 1088
8
2
8
0 1315
8
2
8
0 677
8
2
8
0 1804
8
2
8
0 1942
8
2
8
0 1123
8
2
8
0 1332
8
2
8
0 375
8
2
8
0 817
8
2
8
0 1267
8
2
8
0 1608
8
2
8
0 1860
8
2
8
0 1020
8
2
8
0 48
8
2
8
0 1527
8
...

result:

ok 

Test #68:

score: 70.42
Acceptable Answer
time: 0ms
memory: 3788kb

input:

1979
1
1
1
1
1
1
2
1
1
2
1
1
1
1
1
1
1
1
2
2
1
2
1
2
1
1
1
1
2
1
1
2
2
1
1
1
2
2
2
2
1
1
1
1
2
2
2
2
2
1
1
1
1
2
2
2
1
1
2
2
1
1
2
2
1
1
2
2
2
2
2
2
2
2
2
1
2
1
2
2
2
2
2
2
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
1
2
2
2
2
1
1
2
2
2
2
2
2
1
2
2
1
2
2
2
2
1
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 1932
8
2
8
0 83
8
2
8
0 765
8
2
8
0 1426
8
2
8
0 558
8
2
8
0 1049
8
2
8
0 1617
8
2
8
1 1617
8
0 1673
8
2
8
0 345
8
2
8
0 1485
8
2
8
1 1485
8
0 397
8
2
8
0 342
8
2
8
0 1601
8
2
8
0 447
8
2
8
0 131
8
2
8
0 918
8
2
8
0 147
8
2
8
0 1904
8
2
8
0 893
8
2
8
1 893
8
0 1414
8
2
8
1 1414
8
0 1881
8
2
8
0 ...

result:

points 0.93893333330 points  0.93893333330

Test #69:

score: 69.39
Acceptable Answer
time: 8ms
memory: 3764kb

input:

1979
1
1
1
1
1
1
2
1
1
2
1
1
1
1
1
1
1
1
2
2
1
2
1
2
1
1
1
1
2
1
1
2
2
1
1
1
2
2
2
2
1
1
1
1
2
2
2
2
2
1
1
1
1
2
2
2
1
1
2
2
1
1
2
2
1
1
2
2
2
2
2
2
2
2
2
1
2
1
2
2
2
2
2
2
1
1
1
1
2
2
2
2
2
2
2
2
2
2
1
2
2
2
1
1
2
2
2
2
1
1
2
2
2
2
2
2
2
2
2
1
2
2
2
2
1
1
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 1932
8
2
8
0 83
8
2
8
0 765
8
2
8
0 1426
8
2
8
0 558
8
2
8
0 1049
8
2
8
0 1617
8
2
8
1 1617
8
0 1673
8
2
8
0 345
8
2
8
0 1485
8
2
8
1 1485
8
0 397
8
2
8
0 342
8
2
8
0 1601
8
2
8
0 447
8
2
8
0 131
8
2
8
0 918
8
2
8
0 147
8
2
8
0 1904
8
2
8
0 893
8
2
8
1 893
8
0 1414
8
2
8
1 1414
8
0 1881
8
2
8
0 ...

result:

points 0.92520 points  0.92520

Test #70:

score: 68.84
Acceptable Answer
time: 8ms
memory: 4092kb

input:

1979
1
1
1
1
1
2
1
1
1
1
2
1
2
1
1
1
1
2
2
2
2
2
2
2
2
1
2
2
1
1
2
1
1
2
1
1
2
1
2
1
2
2
2
2
2
2
2
1
1
2
2
1
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2...

output:

8
0 1932
8
2
8
0 83
8
2
8
0 765
8
2
8
0 1426
8
2
8
0 558
8
2
8
0 1049
8
2
8
1 1049
8
0 1617
8
2
8
0 1673
8
2
8
0 345
8
2
8
0 1485
8
2
8
0 397
8
2
8
1 397
8
0 342
8
2
8
0 1601
8
2
8
1 1601
8
0 447
8
2
8
0 131
8
2
8
0 918
8
2
8
0 147
8
2
8
0 1904
8
2
8
1 1904
8
0 893
8
2
8
1 893
8
0 1414
8
2
8
1 1414
...

result:

points 0.91786666670 points  0.91786666670

Test #71:

score: 68.05
Acceptable Answer
time: 16ms
memory: 3796kb

input:

1979
1
1
1
1
1
2
1
1
1
1
2
1
2
1
1
1
1
2
2
2
2
2
2
2
2
1
2
2
1
1
2
1
1
2
1
1
2
1
2
1
2
2
1
2
2
2
2
1
1
2
2
1
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2...

output:

8
0 1932
8
2
8
0 83
8
2
8
0 765
8
2
8
0 1426
8
2
8
0 558
8
2
8
0 1049
8
2
8
1 1049
8
0 1617
8
2
8
0 1673
8
2
8
0 345
8
2
8
0 1485
8
2
8
0 397
8
2
8
1 397
8
0 342
8
2
8
0 1601
8
2
8
1 1601
8
0 447
8
2
8
0 131
8
2
8
0 918
8
2
8
0 147
8
2
8
0 1904
8
2
8
1 1904
8
0 893
8
2
8
1 893
8
0 1414
8
2
8
1 1414
...

result:

points 0.90733333330 points  0.90733333330

Test #72:

score: 70.88
Acceptable Answer
time: 15ms
memory: 4052kb

input:

1981
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
1
1
1
1
2
2
2
1
1
2
1
2
1
2
1
2
1
1
2
1
2
1
2
2
2
2
2
2
1
2
2
2
1
1
2
2
2
2
2
2
1
1
1
2
2
2
2
2
2
1
2
1
1
1
2
1
2
2
1
2
1
1
2
2
2
2
1
2
1
2
1
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 994
8
2
8
0 644
8
2
8
0 432
8
2
8
0 345
8
2
8
1 345
8
0 934
8
2
8
0 417
8
2
8
0 1492
8
2
8
0 1918
8
2
8
0 200
8
2
8
0 641
8
2
8
0 1923
8
2
8
0 1576
8
2
8
0 822
8
2
8
0 925
8
2
8
0 395
8
2
8
0 1211
8
2
8
0 29
8
2
8
0 1251
8
2
8
0 1651
8
2
8
0 498
8
2
8
0 1973
8
2
8
0 1646
8
2
8
0 1302
8
2
8
1 130...

result:

points 0.94506666670 points  0.94506666670

Test #73:

score: 73
Acceptable Answer
time: 14ms
memory: 3792kb

input:

1981
1
1
1
1
1
1
1
1
2
1
1
1
1
2
1
1
1
1
2
1
1
2
1
1
2
1
1
1
1
2
2
1
1
1
2
2
1
2
1
2
2
2
1
1
1
2
2
1
1
2
2
2
1
1
2
2
2
2
2
1
2
2
2
1
2
2
2
2
2
2
2
1
2
1
2
2
2
2
2
2
1
2
2
1
2
2
2
2
2
2
2
1
1
2
1
2
2
2
1
2
1
2
2
1
2
2
2
2
2
1
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2...

output:

8
0 994
8
2
8
0 644
8
2
8
0 432
8
2
8
0 345
8
2
8
0 934
8
2
8
0 417
8
2
8
0 1492
8
2
8
0 1918
8
2
8
0 200
8
2
8
1 200
8
0 641
8
2
8
0 1923
8
2
8
0 1576
8
2
8
0 822
8
2
8
0 925
8
2
8
1 925
8
0 395
8
2
8
0 1211
8
2
8
0 29
8
2
8
0 1251
8
2
8
0 1651
8
2
8
1 1651
8
0 498
8
2
8
0 1973
8
2
8
0 1646
8
2
8
1...

result:

points 0.97333333330 points  0.97333333330

Test #74:

score: 75
Accepted
time: 0ms
memory: 3808kb

input:

1989
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
2
1
1
1
1
1
2
1
1
1
2
1
1
1
1
1
1
1
1
1
2
2
1
2
2
1
1
2
2
1
1
1
1
1
1
1
1
1
2
1
2
2
2
2
2
1
2
1
2
1
1
1
2
2
2
1
1
1
2
2
2
2
1
1
1
1
1
1
1
2
2
2
1
2
1
2
1
2
2
2
2
1
2
2
1
2
2
2
1
1
2
2
2
2
2
1
1
2
2
2
1
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
1...

output:

8
0 83
8
2
8
0 1229
8
2
8
0 1355
8
2
8
0 1683
8
2
8
0 228
8
2
8
0 1518
8
2
8
0 791
8
2
8
0 504
8
2
8
0 1447
8
2
8
0 1002
8
2
8
0 465
8
2
8
0 1734
8
2
8
0 677
8
2
8
0 1010
8
2
8
0 1427
8
2
8
0 1363
8
2
8
0 1533
8
2
8
0 649
8
2
8
1 649
8
0 646
8
2
8
0 144
8
2
8
0 470
8
2
8
0 1739
8
2
8
0 548
8
2
8
0 1...

result:

ok 

Test #75:

score: 75
Accepted
time: 7ms
memory: 3792kb

input:

1989
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
2
1
1
1
1
1
2
1
1
1
2
1
1
1
1
1
1
1
1
1
2
2
1
2
2
1
1
2
2
1
1
1
1
1
1
1
1
1
2
1
2
2
2
2
2
1
2
1
2
1
1
1
2
2
2
1
1
1
2
2
2
2
1
1
1
1
1
1
1
2
2
2
1
2
1
2
1
2
2
2
2
1
2
2
1
2
2
2
1
1
2
2
2
2
2
1
1
2
2
2
1
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
1...

output:

8
0 83
8
2
8
0 1229
8
2
8
0 1355
8
2
8
0 1683
8
2
8
0 228
8
2
8
0 1518
8
2
8
0 791
8
2
8
0 504
8
2
8
0 1447
8
2
8
0 1002
8
2
8
0 465
8
2
8
0 1734
8
2
8
0 677
8
2
8
0 1010
8
2
8
0 1427
8
2
8
0 1363
8
2
8
0 1533
8
2
8
0 649
8
2
8
1 649
8
0 646
8
2
8
0 144
8
2
8
0 470
8
2
8
0 1739
8
2
8
0 548
8
2
8
0 1...

result:

ok 

Test #76:

score: 68.62
Acceptable Answer
time: 3ms
memory: 3792kb

input:

1970
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
2
2
1
1
1
1
1
2
1
1
1
2
2
1
1
2
2
1
2
1
1
1
1
2
1
2
1
2
1
2
1
2
2
2
2
1
2
1
2
1
2
2
2
2
1
2
1
2
2
2
2
2
1
2
2
2
2
1
2
1
2
2
1
2
1
1
2
2
1
2
2
2
1
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
1
2
2
2
2
2
2
2
2
2...

output:

8
0 1348
8
2
8
0 1829
8
2
8
0 504
8
2
8
0 517
8
2
8
0 1619
8
2
8
0 1712
8
2
8
0 824
8
2
8
0 124
8
2
8
0 1556
8
2
8
0 241
8
2
8
0 864
8
2
8
0 240
8
2
8
0 252
8
2
8
0 1718
8
2
8
0 22
8
2
8
0 440
8
2
8
0 755
8
2
8
0 1561
8
2
8
1 1561
8
0 621
8
2
8
0 1197
8
2
8
0 1514
8
2
8
0 622
8
2
8
0 1418
8
2
8
0 47...

result:

points 0.91493333330 points  0.91493333330

Test #77:

score: 69.17
Acceptable Answer
time: 5ms
memory: 3760kb

input:

1970
1
1
1
1
1
1
2
1
1
1
2
2
1
1
1
1
1
2
1
1
2
1
2
1
1
1
2
1
1
2
2
1
2
1
1
1
1
1
2
2
1
1
1
1
2
1
2
2
2
1
1
2
2
1
1
1
1
2
2
1
2
2
1
2
2
2
1
2
1
2
2
1
2
1
2
1
2
2
2
2
1
2
2
2
2
2
2
2
2
1
2
2
1
2
2
2
2
1
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
1
2
2
2
2
2
2
2
2
2
2
1
2
2
2
1
2
2
2
2
2...

output:

8
0 1348
8
2
8
0 1829
8
2
8
0 504
8
2
8
0 517
8
2
8
0 1619
8
2
8
0 1712
8
2
8
0 824
8
2
8
1 824
8
0 124
8
2
8
0 1556
8
2
8
0 241
8
2
8
0 864
8
2
8
1 864
8
0 240
8
2
8
1 240
8
0 252
8
2
8
0 1718
8
2
8
0 22
8
2
8
0 440
8
2
8
0 755
8
2
8
0 1561
8
2
8
1 1561
8
0 621
8
2
8
0 1197
8
2
8
0 1514
8
2
8
1 151...

result:

points 0.92226666670 points  0.92226666670

Test #78:

score: 71.53
Acceptable Answer
time: 0ms
memory: 3764kb

input:

1980
1
1
1
1
2
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
2
2
1
1
1
2
1
2
2
2
1
2
2
2
1
2
2
2
2
1
2
1
2
2
1
2
2
1
2
2
2
2
1
2
2
2
1
2
2
1
2
1
2
2
1
2
1
1
2
2
1
2
2
2
1
2
1
2
2
2
2
2
1
2
2
2
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
1
2
2
1
2
1
1
2
2
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
1
2
2...

output:

8
0 243
8
2
8
0 598
8
2
8
0 947
8
2
8
0 1731
8
2
8
0 833
8
2
8
1 833
8
0 908
8
2
8
0 492
8
2
8
1 492
8
0 11
8
2
8
0 895
8
2
8
0 33
8
2
8
0 747
8
2
8
0 1676
8
2
8
0 767
8
2
8
0 56
8
2
8
0 130
8
2
8
0 235
8
2
8
0 666
8
2
8
0 857
8
2
8
0 690
8
2
8
0 356
8
2
8
0 835
8
2
8
0 1646
8
2
8
0 162
8
2
8
0 565
...

result:

points 0.95373333330 points  0.95373333330

Test #79:

score: 71.07
Acceptable Answer
time: 11ms
memory: 4076kb

input:

1980
1
1
1
1
2
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
2
2
1
1
1
2
1
2
2
2
1
2
2
2
1
2
2
2
2
1
2
1
2
2
1
2
2
1
2
2
2
2
1
2
2
2
1
2
2
1
2
1
2
2
1
2
1
1
2
2
1
2
2
2
1
2
1
2
2
2
2
2
1
2
2
2
1
2
2
2
2
2
2
2
2
1
2
2
2
2
2
1
2
2
1
2
1
1
2
2
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
1
2
2...

output:

8
0 243
8
2
8
0 598
8
2
8
0 947
8
2
8
0 1731
8
2
8
0 833
8
2
8
1 833
8
0 908
8
2
8
0 492
8
2
8
1 492
8
0 11
8
2
8
0 895
8
2
8
0 33
8
2
8
0 747
8
2
8
0 1676
8
2
8
0 767
8
2
8
0 56
8
2
8
0 130
8
2
8
0 235
8
2
8
0 666
8
2
8
0 857
8
2
8
0 690
8
2
8
0 356
8
2
8
0 835
8
2
8
0 1646
8
2
8
0 162
8
2
8
0 565
...

result:

points 0.94760 points  0.94760

Test #80:

score: 73.06
Acceptable Answer
time: 5ms
memory: 3872kb

input:

2000
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
2
2
2
1
1
2
1
2
1
2
1
1
2
1
2
1
1
1
2
1
2
1
1
2
1
1
1
1
1
2
1
1
2
1
1
2
1
2
2
1
2
2
1
1
2
1
1
1
1
1
1
1
2
2
2
1
2
1
2
2
1
1
1
1
1
2
2
1
1
2
2
1
2
1
1
2
2
2
2
1
1
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
1
2
1
2
2
2
2
2
2
2
2
1
2
1
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
0 1558
8
2
8
0 870
8
2
8
0 1547
8
2
8
0 730
8
2
8
0 182
8
2
8
0 881
8
2
8
0 20
8
2
8
0 719
8
2
8
0 643
8
2
8
0 1112
8
2
8
1 1112
8
0 405
8
2
8
0 213
8
2
8
0 1683
8
2
8
0 1409
8
2
8
0 1130
...

result:

points 0.97413333330 points  0.97413333330

Test #81:

score: 73.01
Acceptable Answer
time: 6ms
memory: 3852kb

input:

2000
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
2
2
2
1
1
2
1
2
1
2
1
1
2
1
2
1
1
1
2
1
2
1
1
2
1
1
1
1
1
2
1
1
2
1
1
2
1
2
2
1
2
2
1
1
1
1
1
1
1
1
1
1
2
2
2
1
2
1
2
2
1
1
1
1
1
2
2
2
1
2
2
1
2
1
1
2
2
2
2
1
1
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
1
2
1
2
2
2
2
2
2
2
2
1
2
1
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
0 1558
8
2
8
0 870
8
2
8
0 1547
8
2
8
0 730
8
2
8
0 182
8
2
8
0 881
8
2
8
0 20
8
2
8
0 719
8
2
8
0 643
8
2
8
0 1112
8
2
8
1 1112
8
0 405
8
2
8
0 213
8
2
8
0 1683
8
2
8
0 1409
8
2
8
0 1130
...

result:

points 0.97346666670 points  0.97346666670

Test #82:

score: 71.01
Acceptable Answer
time: 5ms
memory: 3868kb

input:

2000
1
1
1
1
1
1
1
1
1
1
2
1
1
1
2
2
1
1
1
2
1
1
1
1
2
1
2
2
2
1
1
2
1
2
1
2
1
1
1
1
2
1
1
1
2
2
1
1
2
1
2
1
2
1
2
2
1
2
2
2
2
1
2
2
1
1
1
2
1
2
1
1
2
2
2
1
2
2
2
2
1
2
2
2
2
2
1
1
2
2
2
2
2
1
1
2
1
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
0 1558
8
2
8
0 870
8
2
8
1 870
8
0 1547
8
2
8
0 730
8
2
8
0 182
8
2
8
0 881
8
2
8
1 881
8
0 20
8
2
8
1 20
8
0 719
8
2
8
0 643
8
2
8
0 1112
8
2
8
0 405
8
2
8
1 405
8
0 213
8
2
8
0 1683
8
2
...

result:

points 0.94680 points  0.94680

Test #83:

score: 70.46
Acceptable Answer
time: 17ms
memory: 3764kb

input:

2000
1
1
1
1
1
1
1
1
1
1
1
1
2
2
1
2
1
1
1
1
2
1
1
1
2
1
2
1
2
1
1
2
1
2
2
2
1
1
1
1
1
2
2
1
1
2
2
2
2
1
2
2
2
1
2
2
2
2
2
2
2
1
1
2
1
2
2
1
1
2
2
1
2
2
2
2
1
1
2
2
1
2
2
2
2
2
2
1
2
1
2
2
1
2
2
2
2
2
2
2
2
2
2
2
1
2
2
1
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
1
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
0 1558
8
2
8
0 870
8
2
8
0 1547
8
2
8
0 730
8
2
8
1 730
8
0 182
8
2
8
1 182
8
0 881
8
2
8
0 20
8
2
8
1 20
8
0 719
8
2
8
0 643
8
2
8
0 1112
8
2
8
0 405
8
2
8
0 213
8
2
8
1 213
8
0 1683
8
2
...

result:

points 0.93946666670 points  0.93946666670

Test #84:

score: 75
Accepted
time: 0ms
memory: 4040kb

input:

540
1
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
...

output:

8
0 255
8
2
8
0 384
8
2
8
1 384
8
0 492
8
2
8
1 492
8
0 27
8
2
8
1 27
8
0 420
8
2
8
1 420
8
0 75
8
2
8
1 75
8
0 12
8
2
8
1 12
8
0 441
8
2
8
0 475
8
2
8
1 475
8
0 379
8
2
8
1 379
8
0 170
8
2
8
1 170
8
0 431
8
2
8
1 431
8
0 271
8
2
8
1 271
8
0 286
8
2
8
1 286
8
0 156
8
2
8
1 156
8
0 191
8
2
8
1 191
8
...

result:

ok 

Test #85:

score: 75
Accepted
time: 8ms
memory: 3796kb

input:

1834
1
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 779
8
2
8
0 450
8
2
8
1 450
8
0 597
8
2
8
1 597
8
0 1229
8
2
8
1 1229
8
0 140
8
2
8
1 140
8
0 253
8
2
8
0 395
8
2
8
1 395
8
0 156
8
2
8
1 156
8
0 543
8
2
8
1 543
8
0 1672
8
2
8
1 1672
8
0 1507
8
2
8
1 1507
8
0 905
8
2
8
1 905
8
0 595
8
2
8
1 595
8
0 669
8
2
8
1 669
8
0 1122
8
2
8
1 1122
8
0 990
...

result:

ok 

Test #86:

score: 75
Accepted
time: 5ms
memory: 4088kb

input:

2000
1
2
2
2
2
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
1 895
8
0 774
8
2
8
1 774
8
0 44
8
2
8
1 44
8
0 679
8
2
8
1 679
8
0 702
8
2
8
0 1716
8
2
8
1 1716
8
0 1580
8
2
8
1 1580
8
0 1574
8
2
8
1 1574
8
0 1558
8
2
8
1 1558
8
0 870
8
2
8
1 870
8
0 1547
8
2
8
1 1547
8
0 730
8
2
8
1 730
8
0 182
8
2
8
1 182
8
0 881
8
2
8
1 881
8
0 20
8...

result:

ok 

Test #87:

score: 75
Accepted
time: 7ms
memory: 3740kb

input:

2000
1
2
2
2
2
2
1
1
1
1
2
1
2
2
2
2
2
2
1
2
2
1
1
1
1
1
1
2
2
2
2
1
2
2
2
1
2
1
2
1
1
2
2
2
2
1
2
1
1
1
2
2
2
2
2
2
2
2
1
2
2
2
1
2
2
2
1
1
1
1
2
1
1
1
2
1
2
1
2
1
1
2
2
2
2
1
2
2
1
2
1
1
1
1
2
2
1
2
2
2
1
2
1
1
1
2
1
1
1
1
1
1
2
2
2
1
1
2
2
2
2
1
2
1
2
1
2
1
1
2
1
2
2
1
1
1
2
2
2
1
2
2
2
1
2
1
2
2...

output:

8
0 615
8
2
8
0 895
8
2
8
1 895
8
0 774
8
2
8
1 774
8
0 44
8
2
8
1 44
8
0 679
8
2
8
1 679
8
0 702
8
2
8
1 702
8
0 1716
8
2
8
0 1580
8
2
8
0 1574
8
2
8
0 1558
8
2
8
0 870
8
2
8
1 870
8
0 1547
8
2
8
0 730
8
2
8
1 730
8
0 182
8
2
8
1 182
8
0 881
8
2
8
1 881
8
0 20
8
2
8
1 20
8
0 719
8
2
8
1 719
8
0 643...

result:

ok 

Test #88:

score: 75
Accepted
time: 0ms
memory: 3824kb

input:

2000
1
1
1
1
1
1
1
2
2
2
1
2
1
1
1
1
1
1
2
1
1
2
2
2
2
2
2
1
1
1
1
2
1
1
1
2
1
2
1
2
2
1
1
1
1
2
1
2
2
2
1
1
1
1
1
1
1
1
2
1
1
1
2
1
1
1
2
2
2
2
2
2
2
2
1
2
1
2
1
2
2
1
1
1
1
2
1
1
2
1
2
2
2
2
1
1
2
1
1
1
2
1
2
2
2
1
2
2
2
2
2
2
1
1
1
2
2
1
1
1
1
2
1
2
1
2
1
2
2
1
2
1
1
2
2
2
1
1
1
2
1
1
1
2
1
2
1
1...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
0 1580
8
2
8
1 1580
8
0 1574
8
2
8
1 1574
8
0 1558
8
2
8
1 1558
8
0 870
8
2
8
0 1547
8
2
8
1 1547
8
0 730
8
2
8
0 182
8
2
8
0 881
8
2
8
0 20
8
2
8
0 719
8
2
8
0 643
8
2
8
0 1112
8
2
8
1 1112
8
0 405
8
2
8
0 213
8
2...

result:

ok 

Test #89:

score: 75
Accepted
time: 14ms
memory: 3808kb

input:

2000
1
1
1
1
1
1
2
2
2
2
1
2
1
2
1
2
1
1
1
2
2
2
1
1
2
2
2
2
2
1
1
1
1
1
1
1
2
1
2
1
2
1
1
2
1
2
1
2
2
1
1
1
2
1
2
2
1
2
1
1
2
1
2
2
2
2
2
2
2
1
1
2
1
1
1
2
1
1
2
2
2
2
1
1
2
1
1
2
2
1
1
2
2
1
2
1
1
1
1
1
2
2
2
2
1
2
2
2
2
1
2
1
2
2
1
2
2
1
2
1
2
1
1
1
2
1
2
2
1
1
1
2
2
1
1
1
1
1
2
2
2
1
2
1
1
2
1
2...

output:

8
0 615
8
2
8
0 895
8
2
8
0 774
8
2
8
0 44
8
2
8
0 679
8
2
8
0 702
8
2
8
0 1716
8
2
8
1 1716
8
0 1580
8
2
8
1 1580
8
0 1574
8
2
8
1 1574
8
0 1558
8
2
8
1 1558
8
0 870
8
2
8
0 1547
8
2
8
1 1547
8
0 730
8
2
8
0 182
8
2
8
1 182
8
0 881
8
2
8
0 20
8
2
8
1 20
8
0 719
8
2
8
0 643
8
2
8
0 1112
8
2
8
0 405
...

result:

ok