QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#246358#4669. Genetic ModificationsQZJ123456AC ✓8ms6856kbC++141.7kb2023-11-10 19:24:192023-11-10 19:24:19

Judging History

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

  • [2023-11-10 19:24:19]
  • 评测
  • 测评结果:AC
  • 用时:8ms
  • 内存:6856kb
  • [2023-11-10 19:24:19]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int n,m;
char s[100005],t[100005];
int nxt[100005][2],lst[100005][2],l[100005];
struct node{
	int l,r;
	node(){}
	node(int l_,int r_){
		l=l_,r=r_;
	}
}cur,a[100005];
node merge(node x,node y){
	if(x.l>x.r)return y;
	if(y.l>y.r)return x;
	return node(min(x.l,y.l),max(x.r,y.r));
}
bool ck[100005];
bool in(int l,int r,int x){
	return (l<=x)&&(x<=r);
}
vector<int>out;
int main(){
//	freopen("sequence.in","r",stdin);
//	freopen("sequence.out","w",stdout);
	scanf("%s%s",s+1,t+1);
	n=strlen(s+1),m=strlen(t+1);
	for(int i=1;i<=n;i++)if(s[i]=='A')s[i]='0';else s[i]='1';
	for(int i=1;i<=m;i++)if(t[i]=='A')t[i]='0';else t[i]='1';
	for(int i=1;i<=m;i++){
		lst[i][0]=lst[i-1][0],lst[i][1]=lst[i-1][1];
		lst[i][t[i]-'0']=i;
	}
	nxt[m+1][0]=nxt[m+1][1]=1e9;
	for(int i=m;i;i--){
		nxt[i][0]=nxt[i+1][0],nxt[i][1]=nxt[i+1][1];
		nxt[i][t[i]-'0']=i;
	}
	int lls=-1;
	for(int i=1;i<=n;i++){
		int p=l[(s[i-1]-'0')^1];
		if(p!=lls){
			cur=node(1e9,0);
			for(int j=p;j<i;j++)cur=merge(cur,a[j]);
			lls=p;
		}
		if(cur.l<=cur.r)a[i]=node(nxt[cur.l+1][s[i]-'0'],lst[min(m,cur.r+1)][s[i]-'0']);
		else a[i]=node(1e9,0);
		cur=merge(a[i],cur);
		l[s[i]-'0']=i;
	}
	ck[n]=1;
	for(int i=n-1;i;i--)if(s[i+1]==s[n])ck[i]=1;else break;
	int pos=-1;
	for(int i=1;i<=n;i++){
		if(in(a[i].l,a[i].r,m)&&ck[i])pos=i;
	}
	if(pos==-1){
		puts("NO");
		exit(0);
	}
	out.push_back(pos);
	puts("YES");
	for(int i=m-1;i;i--){
		pos--;
		while(pos){
			if(in(a[pos].l,a[pos].r,i)&&s[pos]==t[i])break;
			pos--;
		}
		out.push_back(pos);
	}
	reverse(out.begin(),out.end());
	for(auto to:out)printf("%d ",to);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

BBAAABBAAABAAA
BAAB

output:

YES
2 5 8 11 

result:

ok good solution

Test #2:

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

input:

ABABABABAB
ABAB

output:

NO

result:

ok no solution

Test #3:

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

input:

BBAAAAABBAAAAAABBABAABBBBBAABBBAAABABBABABBBAAABBAAAABBBBBABAABBBAABBBBBBBABBABABBAAAABBAAAABAAAABBABAAAAAAABBBBAAAAAABAABABBAAAAABBBBAABABABAAAAABBBABABBAABABBBBAABAABBBBBABBABABBAAABBAAAABBBABBABAAAABBBAABAAABBBAAAAAAAAAAAAABABBAABBBBABABAABBBBABAABBAAABABBBBAAAAAAAABBAAAABBABABABBBAAABAABBABBAAAA...

output:

NO

result:

ok no solution

Test #4:

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

input:

BABABAABABBABAAAAABAABBAAAAABABABBABABBBBBBBAAAAAAABAAAAABAABBABBABABBBABBBAAAABBBABABBAAAABBBAABBBBBBBAAAABAAAABBBBABBAABAABBBAABBBBABAABABBBBAABABBABBAABAABBBBBAAABBAABABBBBAABABBABAABAAAABBABABAABBBABBBBABABABABAAABBABABABABBABAABBBBABAABBABBBBABABBABBBBBAABBBBBAAABAABAAAABBBBBABBABABABBBBABBBABA...

output:

YES
1 2 4 5 7 8 9 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 69 70 71 72 73 74 75 76 77 78 79 81 82 83 85 86 87 88 89 90 91 94 95 96 98 99 100 101 102 103 104 105 106 107 108 110 111 1...

result:

ok good solution

Test #5:

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

input:

BAABBBBBBAAABABABAAAAABAABBAAABBAABBBAABABBBABBABBBABBBBABAABAAAAABBBBBBBABABABAABABAABAABBBBBBABABABABBABBBBAABAABBAAABABBAAAAAAABBAAAAAAAABAAABABBAAABABABBBABAAABBBAABAABBABBBBBBBBBABBBABBBABBAABAABBABABBBBAAAABABAABAABABBABBABBBBBAABABABBBBBABAABBABABAABBABAABABBBBABABBBBBBABBBABABBAAABBAAABBABBA...

output:

NO

result:

ok no solution

Test #6:

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

input:

BBAABBAAABBBBAAABABBBABBBAABABAABBBABABBBAABBBBBBABBBAABABBBAAAAABABBABAABBAABABAABBAAABBBABAABBBAABAABABABBBBAABBBBBBBBBBBABBABABABBABBAAAAAAABAABABAABBABBABABBBBBAABBABBAABAABBBABBABBAABBBAAABBAAABABBBBBAAAABBAAABBAABABBABAABBBBAABBBAAAAAABBBAAAAABBBAAAABAABAAABBBAAABABBBABBBBBBBBAABABBABBBABAABAA...

output:

NO

result:

ok no solution

Test #7:

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

input:

BABBBBAABAAAAAABAAAAAABBABBABABAAABAAABAAAAABABAABABAABBBAAAABABBABAAABBBABAABBAABBBAABABBBABBBBBAAAABBAAABBBABBABBBAAABAABABABBABABABABBBAABABABAABBBBBAABAABBABAABABBBBBAABBAABABBAAABAAABABBBABABBBBAAABAABBBAABAABABBAABABAAAAABBBBAABABBBBBBABBBBBABBBABABBBAAAAAAABBAABAAAABAAAABBAABAABAABAABBBABBBAB...

output:

YES
1 2 6 8 10 14 15 16 20 21 22 24 26 27 29 31 34 35 37 38 39 43 44 46 48 49 50 52 54 57 59 60 61 63 64 65 66 67 69 70 73 75 76 77 79 81 84 85 86 87 88 91 92 94 95 96 97 100 101 103 105 106 109 111 112 114 115 116 118 119 121 122 123 124 125 126 128 129 130 132 133 134 135 137 138 140 142 143 144 1...

result:

ok good solution

Test #8:

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

input:

AABABBAAAAABBAAAAABBBAAAAABBAABBBBBABBABABBAAAABAAABAABAAABBABBABBABAABBBBBBBAABABBBBBAAABABABABBBAABABABAAAAABBAABAABAABABABABBAABBBAABAABBAAAABBBBBBBBABBBBABAAAABAABBABABAAABABABBBAAABAAAABBBAAABBBAAABABBBAAABBBAAABBBBABAABAAABABAABABBAAAABBBAAABBBAABAAABABABBBBAABBABABBBBAAABAABBBBABBAABBBAAAABAA...

output:

NO

result:

ok no solution

Test #9:

score: 0
Accepted
time: 6ms
memory: 5540kb

input:

BBAAAAAABAAABBBAABABABAABABAAABABAAAAABBBAAAABBABBABAAABABAAAABBAABBBBBBBAABABABBBBABBABAABBBABAAAABBABABBBAABBAABBBABBABBAABBBAAABBABABAAAAAABBBABBBAABAAAABAAAABAAABAAAAAAABAAAAABBABBBAAAAABBBAAABBBABBBBBAAABBAABAAABAAABBBAABBABBAABAAABBAAABAAAAABAAABBBABAAABABAAAAAAAABBBAAAAAABAAABAAABBABABBABABBA...

output:

YES
2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 29 30 32 33 35 36 37 38 39 40 41 43 44 45 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 98 99 100 101 102 103 104 106 107 109 111 114 115 116 ...

result:

ok good solution

Test #10:

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

input:

BABBABBABBBAAABABBBBAAAABBBABBBAABBAAAAABBBBABBBAABAAAAAABAABAABABABBABABBBBBBBAAABAABABBBBABBAABBAAAABBBAAABAABBBBAABABBABBABBABAAAAABBABABBABBABBAABABBABBBBBAAAABABABAABAAABABBBAABBAAABAABBBBABAABBBBBBABBABAABBAAABBBBBBAABABABABAAABAABBAABAABABAABBBBBBBBABABABBBABABBBABABAAAAABBBBBAAAAAAABBBBABABA...

output:

NO

result:

ok no solution

Test #11:

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

input:

AAABBAAABABBBBBABBAAAAABABBABBBABABBAAABAABBBABBBAABBBBABBBAAABBBBBABAABBABABBBABAAABBAAABBBBBABBBBAAAABBAAABBBBABABAAAAAAAABBAAABAABBBABAAABBAAAAABABABABABABAABBBABBBBAABBAABBBBABBBBBBBBBBBAABAAABABBABAAABABABBABBBABBAABABAABBBBABAABAABABBABABBBBABAAABABABBAAABABABAAABBBAAABABAABBBBABAABBBAAABBBBBA...

output:

YES
2 3 5 7 8 9 10 12 13 14 15 16 18 20 21 22 23 24 25 28 30 31 33 35 36 38 39 40 42 45 46 48 49 50 51 54 55 57 58 59 61 62 64 65 66 67 69 71 73 75 76 78 79 81 83 84 86 89 93 94 96 97 98 99 102 103 106 107 108 112 114 115 116 123 124 126 127 128 129 130 132 135 136 137 138 139 140 142 147 149 150 15...

result:

ok good solution

Test #12:

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

input:

BAABBAABBBAABBAABAABABABBABBABABBAAAAABBBBBBABBABAAABBAAAAABBBABABABBABBBAAABABAABBABABAABAABBBAABBAAAABBBBABBBBBBBBBABAABBABAAABAAAABBABAABABBBBBBBABBAAAAAABABABBBABABBBABABABABBAAAAAAAABABBABBBABABBBBABAAABBBBBABBAAABAABABBBAABABABBBBAABBBBBABABBBBABABBAAABABAABABAAAABABBABAAAAABBBABAAABABABAABAAA...

output:

NO

result:

ok no solution

Test #13:

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

input:

BBAAAAABBBBBABAAAABABAAABBBABBBAABAAABAAABABAABBABAABABBBBBABABABAAAABABAAABABABBAABBABBBBBAABBABBABBABABBBAAABABBBBBBBBBBABBBBBABAAAABBABBAABBBBBAABAAABBAABABBBBBAAAAABAABABAAAAAAABBBBBAABBBBAABABAAABABABAABBAAABAABBAAABBBABAABAABAABBAABBABBABAABABBABBBABABAAABBABBBBAAABAAABBBBBBABABBBBBBAAAABAABAB...

output:

NO

result:

ok no solution

Test #14:

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

input:

BBBAAABABBBABAABBAAABAABAAABABABAAAAABABABBABAAABBABBAAABAABBBABABABBABBBAAAAABAABBBABBBBAABBBBBABAABBABABBBABBBBBAABABBAAAABBABABBAAABBBAAAABAAABAABBBBBABBBBABABABAAAABAAAAAAAABABBBABAAABBAAAABBAABAAAABABABAAAABAAAAABBBBBABAABAAAAAAAAAABABABBBBBAAABABAABABAABBBAABABBAABAAABAAAABABABAAABABBAAAABABAA...

output:

YES
1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 40 41 42 43 44 45 47 48 50 51 53 54 55 56 57 58 59 62 63 64 65 66 67 68 69 70 72 73 75 76 77 78 79 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 11...

result:

ok good solution

Test #15:

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

input:

BBBABABABBBABAABAAAABBAABABBAABAABBBBAAAAABABBABABBBBBABABBBBABBBABBBBBABBBAABABAABAABBBBBBABAAABAABAABAABBBBBBBBBBAABABAABBAAABBAABBBBBBABBAABBBAAAABBBBAAAABAAAABBBAAAABAAABBBBAABABAAAAAABABAABAAAAABBBBBBAAABAABABBABBBAAABABBBAABBBBBBBBAAABABABBABABAABBBABAABAAAABABBBBBBBAAABAABBBBBBBAAABABABBBAAAA...

output:

NO

result:

ok no solution

Test #16:

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

input:

BABAAABAAABABBAAAAABBBABAABBABABABBBBBABABAABBAABAABAAAAAABABBBABABAABBBABAABBAABBBABBBAAAAAABBABAAAAAABAABABABBBBABABBABBBBBBBBBBBBBBAAAABAAABBBBBBBABBABBBAABBBBBBBAAAAABABBBAABAABABABBBBAAAABAAAABBABABBBABBABBABBBAAABBBABBBABBABBAABABAAABBAAABAAAAABAAAABABAABBABAAAAABAAAAABBABBBABBABBAAABABAAABAAA...

output:

NO

result:

ok no solution

Test #17:

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

input:

BBBBABBBABBAAAABBBBBBBBBBBABAABBAAAABBBABAAABABBBBABAAAAAABABABBABBBAAAAAAAABBABABBBABAABBABBAABABAABBAABBBBBABAABBBBAABBAABBBBAABABAAABBAAAAABABABAABAAABBBAABBABABBBAAAAAAAABAABABABBAABABABBBBBBBABABAAABBBBAAABABBAABBBBAAAAAAABBAAAABBAABBABBAAAABBAABABABBBAAAAABBAABABBBBAABBAABABBAAABBBAAABABAABBBA...

output:

YES
4 6 9 11 15 26 28 31 32 36 39 40 41 45 46 51 52 59 61 62 65 69 77 78 80 82 85 87 88 91 94 96 98 100 103 105 110 111 114 118 119 122 124 127 130 132 136 138 142 143 145 147 150 153 157 158 161 163 167 175 177 179 181 184 185 186 188 190 197 199 201 204 208 210 212 214 216 220 228 229 234 236 237 ...

result:

ok good solution

Test #18:

score: 0
Accepted
time: 4ms
memory: 5124kb

input:

BBABABAABBBBBABBBAAAABABBAAABBBBBBBBBBABAABABBAAABAAAABBBBAABBABABBBBAABBBBBBBBAAABABBABAAABBBAAAAAABBBBABBBAABBAAABAAAABABBBBAABAAABBAABABABBBABBBABBABBABBABABABBBBAABAAAAAAAAAAABBBABBBAAABBBBABAABBBBABAAAABAABBBAAABABAABABAABABABBAAABABBAABAAABBAAABABABAABAABABBAABBBAAABAABBAABAAABBAABAABBABAAAABA...

output:

YES
2 4 5 7 8 10 11 12 13 14 16 17 18 19 20 21 22 24 25 27 28 32 33 34 35 36 37 38 39 40 43 44 46 47 48 49 50 52 53 54 56 57 58 61 62 63 64 65 67 68 69 71 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 91 93 94 96 97 98 99 100 103 104 106 107 108 109 110 111 112 113 114 115 116 119 120 121 122 124 125...

result:

ok good solution

Test #19:

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

input:

BAABABBAAAAABAABBABBBBBBBBABBABABABAABABAABAABBBAAAABAABBAAABBBBBABABAABBBBAAAABAAABBBAAABABBAAABBAAABBBBABBBBBABABABBBABBBAAAABBABBAABAAABBBABAAAAABABAAABABAABBBAAABAABAABABAAAAAABBBABABBBBBBBABAAAAAABAAABAAAAABBABAABBBABBBBAABAABAABAABBBBAAABBABAABBAABBAABBAABBABBAAAABBBABABBBAAAAAAABAABBAAAAABBAB...

output:

NO

result:

ok no solution

Test #20:

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

input:

AAABBBBBBAAAAABABAAAABABABBAABAABBAAABBAAAABABBBBABABBBABAAABBBBABABABAAABAAABAABABBAABBABAAABABABABAABBAAAABBBBAAAAABBAABBBBAABABBBBBABAABAABBBAABABAABABBAAAAABAABBABAABABABAABBABAABBABBBBBABABBBAABABAABBBBAABBAABABBAABAAAABAABABAAAAABBBABBABAABBABABAABAAABAAABBAABAAAAAABBAAAAAAAAABABBBBBABBAAAAABB...

output:

YES
3 9 15 16 17 21 23 24 25 28 30 32 34 37 39 43 45 49 50 51 53 56 57 61 64 66 67 68 69 70 73 75 77 79 81 82 84 86 88 90 93 94 95 96 97 98 99 100 102 105 109 112 117 120 121 126 128 130 135 136 138 139 142 144 147 148 149 151 152 153 155 160 162 164 166 168 169 171 172 173 174 177 179 181 183 185 1...

result:

ok good solution

Test #21:

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

input:

BBBAABBAAAAABBAABBAAAAAABBABBBAABABABBBAABBBABABBABABAABABBABBABBAAABABBBBAABAABBBBABAAABABABBABBBBBBBABBABABAAABBAAAABABBBBAABBBAABBBBBABBBBBABBBABABABAAAABABABABAABBABBBABAAAABBAAAAABABBBABABAAAAABABBBAAABBAABBBBABABBAAABAAAAABBAABBAAABAAABBBABBBBAABABAABBBBABBAABABBABABAAABABAAAAAAABBABBBBAABAAAA...

output:

YES
2 3 4 5 7 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 26 28 29 30 33 34 36 39 41 43 44 45 47 49 51 52 53 56 57 60 61 62 63 65 67 68 70 73 74 77 79 84 85 89 91 92 95 103 104 105 106 107 109 112 113 114 115 116 117 118 120 124 126 130 131 137 138 139 140 141 142 143 144 145 146 148 149 150 151 152...

result:

ok good solution

Test #22:

score: 0
Accepted
time: 6ms
memory: 5572kb

input:

BBBABBAABAABBAAABBAAABAAABAAABBAABBBBBBBBABAABAABBBBAAABAABBBAABAABBBABABBABBAABBBAAABBABAAAAABABAAAAABBBABABBBAABAABBBBABBAAAAAABABAABABBBABBAABBBAABABBABAAABAAAABAAAAABBAABBBBBABBABBABBABAAABAAAABBBAAAABABABBBBBAAAAABBABAAAABABAAABABBBAAAABABBBAAABABAAAABAAABAABBBBBABAAABABAABBBBAAABAAAAAABABBAABA...

output:

YES
1 2 3 5 6 8 9 10 11 13 15 16 18 20 21 23 24 25 26 28 29 31 32 33 38 39 40 41 43 45 46 47 48 51 52 55 56 58 61 63 65 66 69 71 72 75 76 77 80 81 82 83 84 85 87 88 89 91 92 93 94 96 97 100 101 102 104 105 106 107 108 110 111 113 114 115 116 119 120 122 123 127 128 129 130 131 132 134 136 138 139 14...

result:

ok good solution

Test #23:

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

input:

BBAABBAABBABBABABBBABBBABBABBABBAABABABBBAABBABAABAABBABABABAABBAABBBBAAAAABABABABAAAABABBBABBBBBBBBBBAAABBBAAAAAABBBAAABBBBABABABABABBAAAAABBBBBABBBBBBAABBBABAABBBABABAABBBBBBBAABABAAAABABAABBBBABBAABBAAAAABABABBAAAAABBABABAABABBBBBAAAAABABABAAAAABAAAAABAAABBBBAAABBAABBABABBBAAABBBBBBABBAABBBABABBA...

output:

YES
2 5 7 9 10 12 13 14 15 16 19 20 23 24 27 29 31 32 35 36 37 39 41 43 45 47 50 52 55 56 57 59 61 62 65 67 71 75 76 78 79 80 82 87 89 91 92 102 105 109 114 117 120 124 126 128 130 132 134 135 140 145 147 152 155 157 158 160 161 165 166 168 171 177 180 182 187 188 190 192 196 199 200 203 207 208 209...

result:

ok good solution

Test #24:

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

input:

BBAAAABAABABBABBBBBABBAAAABBAAAAAABBAAAAAABBAAAAABABBBBAAAAAAAABBABBABABBAABAAABBBAABBABABABBBBABAABBBBBBABBBAABAABBBBBBAAAAABBABAAAABBAABABABBBAABAAABAABAAAAABAAABABABBBBAABAABBBBABAAABBBBBBBAAABBBABBBABABABABBABABABBBAAABBBAAABBABBBBBBBBABABAABABBBBBBAABABAAABBAABABAABAAAABBBBABABBAAAABAAABAABBBAA...

output:

YES
2 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 21 22 24 25 26 27 28 30 31 32 33 34 36 39 40 41 42 44 45 46 47 48 49 50 51 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 79 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 99 100 101 102 103 104 105 106 109 111 112 113 114 117 118 1...

result:

ok good solution

Test #25:

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

input:

AAAABAAAABABABABBBABABABABBABABBBBAAABBBABBBBBABBABAABAABBBAAABBBABBABABABABBBBAAABBBBABBBABABBBBBBBABBBAAABBBBAAAABABBAABAAABAABAAABABBBBAAABABBBBABAAABABBBBAABABABAABABAABABBBBAABABABBABAABABBAAABAAABAAABBBBAABAABABBAABBBBBBBAAABBAABBAAAAAAAABAAABABAAABBBBBBAABAABBBAAABABAAAAAABBAAABBBBABBBABBABAA...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 36 37 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 1...

result:

ok good solution

Test #26:

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

input:

BAABBBABBBBBABAAAAABBBBBBBBBAAAAAABAAABABABBBBBBBABBAABABBBAABAAAABAAAABABBBAABAAAABAABBAAABBAAAAAAABABBBBAAAABAAAABABABBAAABABABAAABBBBBBBABBBBBBABABAAAAAAAAAABABBBAAAABABAAABABBABBABBBBABBBBBAABAAAABBAAAAABABABABAABAABBAAAAABABBABBBBBBABABABBBAAAABAAAABBABAAAABBBABAAAAAABABABAAAAABABABBBAABBBBAAAB...

output:

YES
1 3 4 5 6 7 9 10 11 12 13 14 16 17 18 19 23 24 25 26 27 28 30 31 32 33 34 35 37 38 40 41 42 46 47 48 49 51 52 54 56 59 61 62 64 65 66 67 68 69 70 71 72 73 76 79 83 84 86 88 89 90 91 93 95 96 97 98 99 100 102 103 104 105 106 109 110 112 113 114 115 117 118 119 121 122 123 124 125 126 127 128 129 ...

result:

ok good solution

Test #27:

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

input:

BAAAABBBBBBBBAAAABAAABAABABBBBBBABABAAAABBABABABABBBBBBBBBAAAABABAAABBBAABAAABABAABAABABBABABBAAAABAABBBBABAAABAAAAABBABBBAABABBBABABABAAABBAABBABABBABABBBABBBBBABBBABBAABAAABAABBABBBABBAAABAABBBBABABBBABAABABBABABBBBBBAAAABAAABBBAAABBBBAABAAABBBAAABABBBBAAABABABAAAABAAABBABBABABABBABBBAABAABABAAAAA...

output:

NO

result:

ok no solution

Test #28:

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

input:

ABABAABAAAABAAAABAAAAAABAABAABABBABBABAAABABBBABBAAABAAABAABBAABABABAABAABBBABBAAABBAABBBBBBAABBABAABBAABBAAABBAABBBBABAABABABABABBBBAAABBABAABBBBAAABBBBAABBBABAABBABAABBABBABBBABABBABBBBBABABBABABBABBBBBBAAAAAABAABABAABABBABABAABAAABBBAAABBBBBBAAABBBABBAABBAABABABBBAAABBBBBBBBAAAAAABBBBBBBAABAABABB...

output:

YES
1 2 4 6 7 8 9 10 11 12 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 33 35 36 37 38 39 40 41 42 43 46 48 49 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 100 102 104 105 106 109 110 111 112 113 114 115 116 117 118 ...

result:

ok good solution

Test #29:

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

input:

BBAABAABBBBAAAAAAAAABABABBAAAABAAAAAAAAABBABABBBBBABBAAABBABBAABBBBBBBBAABBBBABBBABBBBABAABABAABAABABAABBABABAABAAAABAABBABAABBAABAAABABBBBBBBAABAABBABABBAABABAABABBBBAABABABABAAAABAAAABABBAABBBBAABAABABBABBAAABAABBABABBBBABAAABAABAABBBAAAABAAAAAAAAAAAAABBAABABBBBABBABBAABBABBAABBAABBBABABBBABBAAAAA...

output:

NO

result:

ok no solution

Test #30:

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

input:

AABAABBAAABBAABBAAABABBBAABAABAAAABBBAAABABABBBBAAABBBBBBBABBABAABBAAABBBAABABABABABABABAAAAABBABABBBABAAABBAABBBBABBABABBBBBBABBABAABBABBABBBABBBBABABAABBAAABAABBBABBABBAAAAAAABBBAAABBBABBAABBBAABAABBABAABBAAAAABAABBBBABAABABBBAAABBBABBABAAABABAABABABAAAABAAAAAAABABBBAAABAABBBBAAABBAAABAAABBAAABAAB...

output:

NO

result:

ok no solution

Test #31:

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

input:

BBABBBBAAABAAAAABABAABAABABBAAABBBBBBBABABBBABAABBAABAABAAAAABAAAAAAABABABAAABBABBBBBBBABABAAAAAAABAAAABBBAAAAABABAABABBBABAABBBAABAABAABBAABAABAABBBBAABABBBABBABABBAAAAAAABBBBABABBABABAABBABAABABBBAABBAABBBABBBBAABBBABABBABAABAABBBBABBBABBABBBBBABBABBABABAABABBABBBAAABBBAAABBAABABBBBBABBBBABBBAAAAA...

output:

YES
1 2 4 5 6 7 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 31 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 82 83 84 85 86 87 88 89 90 91 94 95 96 97 98 99 100 101 102 103 105 106 108 109 110 111...

result:

ok good solution

Test #32:

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

input:

ABBABABBBBBABAAAABAAABABBABAAABABAABBBBABABABBBBAABAAABABBAABAAAABABAAABBABAAAABABBBBAAAABAABABABAABABBAABABBBAAABBAAABABABAABBABAABAAABAABBABBBABBBBBBABABABBBBBBAAAABBBAAAABABBBAAAAABABBBABBAAABAABAAAAAAABABABBBBABBAAAAABAAABBABAABAAABAABBAABABAAABBABBBBAAAAABBBBBBABAABABAAAABBBBBABBABAAAAABABABAAB...

output:

NO

result:

ok no solution

Test #33:

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

input:

BAAABABABAABBABAABABABBAABAAABABBABABBBBBAAAABAABAABBAAABBAABABBBABABBBBBBBBBBABABABABAABABBBAABAABBBAAABAAAAAAAABBAAAABBAABBBBABBABAAAAABAABBBAAABBBAABBABBABBBAAAAAABBABBBAAAABAAAABBAAABABAABBAABABBBBBAAABBAAABBAAAAABBAAABABBBABAABAAABBBABBAABBAAAABABAAAAABABAAAABAAABBBBBBAABABABBABBABBBBBBAABABBAB...

output:

YES
2 4 6 8 9 11 13 15 17 18 19 20 21 23 25 26 29 31 33 35 36 37 38 39 40 41 43 44 45 46 49 50 51 54 55 56 58 59 60 62 64 65 66 68 73 74 75 76 77 78 80 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 100 101 103 104 105 107 108 109 110 111 112 113 114 115 118 119 120 121 122 123 127 128 129 130 1...

result:

ok good solution

Test #34:

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

input:

AABAAABBBBAAAABAAABAAABABAAAABAABBBAABBBABAAABAAAAABBABBAABBBBBBBBBABBBAAABBABBAAAABBBBABBABBABBAABAABBBABABABAABAAAABAAAAAABBAAABAABBBBAABBABAAABAABBABBBAAAAAAAABABBAAAAAABBBBBBBABABAABAABAABBABBAABAABABBAAAAABAABABAABBBBBBBAABABAAABABAAABBAAAAAABBBBAAABAABABBBAABABAABBABAAABABAABAABABBBABBAAABAABA...

output:

YES
1 2 3 4 5 6 9 10 15 16 17 18 19 20 21 22 23 24 25 27 28 29 31 32 34 35 37 39 40 41 42 44 45 46 48 49 50 51 53 54 56 57 58 62 63 64 65 66 67 68 70 71 74 75 76 78 79 81 82 83 86 87 89 90 92 93 94 95 96 99 101 103 104 106 107 108 110 111 112 113 115 116 117 118 120 121 122 123 124 126 128 129 131 1...

result:

ok good solution

Test #35:

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

input:

ABAABAABABABBABAAABBBBABBAAABBBBBAAABAABBABAAABABABBABAABBBAAABABAAAABBAABABAAABBAAAAAAAAAAAABBAAABAAABAAAAAAABABBABABBABABAABABAABBABBAAAAABAABBABBABAABBBBAABAAABABBABBBAAAAABABABABAAABBBAAABAABAAABBBBBAAABBBBBAAABBAABAAAAABBBABAABAABAAABBBBAABBABAABAABABBBAABBABBBBBABBAAAAAABAAABABBBAABBAAAABBABAA...

output:

YES
1 2 3 4 6 7 8 9 10 11 13 14 16 17 18 19 20 21 22 23 24 25 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 64 65 68 69 70 71 73 74 75 76 77 78 79 80 81 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 ...

result:

ok good solution

Test #36:

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

input:

ABABBBBBBABAAABBBAAABAABAAAAAABAABAAABABABAAAABAAAAABAABBBBBBBAABAAABAABBABBBBBBBABAAAAAAAAABABBABABBAABBAABBAABBABABBBBBAABABABAABAAAAAABABBAAAABBBABBAAAABBAABAAAAABBAABBBBAABAAAAABABAAAAABABABABBBAABABABBBBBABAAAABBBAAAAABABAABABAABBABBBBAAAAABAABBBBBBAABBBBBABBBBAABABBBBBBBBBBAABBABBBABAAAABABBBA...

output:

YES
2 3 5 6 7 8 9 10 11 12 13 14 17 19 20 21 22 23 24 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 76 77 78 79 80 81 82 83 86 87 88 89 90 91 92 93 95 96 97 99 100 101 103 104 105 106 107 108 109 110 111 113 114 115 116 ...

result:

ok good solution

Test #37:

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

input:

AAAABABBBBBAAAAAAABABBABBABBABBBAABBAABABBBABAABABABABBBAAAAAABAABABBABBAAAABAAAABABBBBABAABABBBBBABBBABAABBBAABAAAABABAAABBBBBABBABABBAABBAAAAAAABBBBBABBBBAAAABABABAABBABBBBBAAABABBABAAABBABAABBABBAABBBBBBAABBAAAABABABBABAAABBBBABABBABABAAABABAAAAABBBBBBABAABAAABBAABABAABBBAAAAAABABBAAABAABBABAAAAB...

output:

YES
2 3 4 6 9 10 11 16 17 18 19 20 22 23 26 29 31 32 34 37 38 40 42 43 45 46 47 49 51 52 53 55 56 58 59 60 61 62 63 65 66 68 69 70 71 72 75 76 77 80 81 83 85 86 87 88 89 91 93 98 99 100 101 102 104 107 108 109 110 111 112 113 114 115 116 117 119 121 122 126 127 128 130 132 133 134 135 138 139 142 14...

result:

ok good solution

Test #38:

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

input:

AABBBBBAABABAABBBBBBAABBABABBABBBABBBAAAAABABBBBBBBAAABBBBBBABABABBBBBABABABABBABABBBAABABBBAABABBABBBBBABABBBAABBBBBAAAABABBBBBABBABBBBAABABBBBABABABAAAAAABBBBAABABABBABAAAAABAABBBABBAABBBAAABBAAAABABBBABAABABAABABABBAAAAAABBBAABBABBAABABAAABABABABBABBABAABBBBBABBABAABAAABAABAAABABBBBAAAABABBBAAABA...

output:

NO

result:

ok no solution

Test #39:

score: 0
Accepted
time: 4ms
memory: 5148kb

input:

BABBABAABBABBABAAABBABAABBBBBBABBBABBBAAABBAABBBABAAABBAABABABAABBAABABABAAAABBAABBBBABABBBBAAABAABAAABABAABABABABABABBBBBBBBABBBABAABAAABBBAABAAABABBBAABBBBBAABAAAAABAAABABABBBAAABAABAAABBBABBAABABABAAAAAAABBAAABAAAABBBBBABAAAABBBAAAABAAABABBABABBAABABBAABABBBABAAABBBAABBBAAABBAAABAAAABBAAAABBBABBA...

output:

YES
1 3 5 6 8 9 10 11 13 14 15 18 20 22 23 24 26 27 28 29 30 31 33 34 35 38 39 40 41 42 43 44 45 47 48 49 50 52 53 55 57 58 60 61 62 64 65 66 67 68 70 71 73 75 76 77 79 81 83 84 85 86 87 88 89 90 91 92 95 97 98 99 103 104 106 107 108 109 110 111 113 114 115 116 117 118 119 120 121 122 123 124 125 12...

result:

ok good solution

Test #40:

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

input:

ABABABABBBAABBABBBAABBBBBBBAABBABABBBABABBBABABAAABABBABAABBBBAABBABABABABBABBBABBBBBABBBAABBBAABBBBAAAABBBAAABABBABABAABBAAABBBABBAABABAABABAABABAAABBBBBABBABBBABABAABBBBBABAAAAAAAABAABBBBABBBABBBAAABBBAAAABBBBAABAABBBBBAAAAABBABABBABAABABBBBBAABAAAABBBAAAAABAAAAAAAAAAAABBBAABAAABABAABAABABBBBABBBB...

output:

YES
2 4 6 7 11 12 14 15 18 21 28 30 32 33 35 38 40 43 45 47 50 52 55 57 59 62 64 66 68 70 71 72 74 76 79 81 85 87 89 91 94 97 100 105 108 110 111 112 114 116 117 119 121 122 125 129 130 131 133 134 135 136 138 139 141 144 146 149 155 156 157 159 160 161 163 165 167 172 173 174 183 185 190 194 195 19...

result:

ok good solution

Test #41:

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

input:

AAAAAAABAABAAABBBABABBAABBBBBBABBAABABABABABBBABABBBBAAABABBBBAAAAAAAAAABBABAAABABBABBABAAABBBBBAABAABABBAABBBAABBBABBABBABABBABBAAAABBAAAABABBBBAAABBBBABABAABABBBBABABBABAABAABAAAABBABAAABABAAABABABABBBABABBAABAAABBBBBABABBBBBBBAABABABBABBBAABBBBBBAAABABBBABBAAABABABBABAAAAABAAABBAAABBBABAABBBBAAAA...

output:

YES
7 9 10 12 14 17 19 21 23 24 30 31 33 36 38 40 41 42 43 47 48 50 53 57 59 62 72 74 76 80 81 84 87 88 92 97 98 100 101 103 105 108 110 113 116 118 119 121 123 124 127 129 134 136 140 141 145 149 153 155 156 158 159 161 164 165 166 168 170 171 173 174 177 182 184 186 188 189 190 191 194 195 196 198...

result:

ok good solution

Test #42:

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

input:

AABAAAAAAABAABBBAAAAABAABBAABBBAAABBBBBAABABAAAAAAABAABBAABAAABBBABBBBBAAABABAABBABBAAABBABABBBBBABAAAABAABBAAABABBBAABBABAABABABABABABBAAABBBAAABBABAABAABABBAABABBABABAAABBBABBBBBAAABBAABBAAAAAABAAAAAAABBBABBBAABAABABBBABBABAAABAAAABABBBBABAABABBBBBBAAABABABABBBAABAABABAABABAABBAABBAABBAABBBAABABBA...

output:

NO

result:

ok no solution

Test #43:

score: 0
Accepted
time: 4ms
memory: 5132kb

input:

BABBBBBBABBAABABBAAAABBBBBBBBBBBBABBBAABBABBBABAAABAAABAAABAABABAABBBAABBBBBAAAAAAABBABBAAABBBBBBABAAAAAAABAABBAABABABAAABAABAABAABBABAAABBBABABAAABBBBBBBBBBAABABBBAABBAAAABAAAABBBBBBAAABBBABAAABBBBABBAABAABABBABBBAAAAABAAABAABBABBBBAAAABAAABABBABBBBABBBBBABBAAAAABBBBAAABAAAAABABAAAABBBBBBBAAABBBAAA...

output:

YES
1 3 8 9 11 13 15 17 21 32 33 35 36 37 40 41 42 44 45 47 50 51 53 54 55 57 58 59 61 62 64 66 69 71 73 74 75 76 81 82 83 86 87 88 90 91 96 97 99 106 108 109 112 113 115 116 117 118 121 122 123 124 125 126 127 128 130 132 134 136 137 139 140 141 142 144 147 154 155 156 157 159 160 161 164 166 167 1...

result:

ok good solution

Test #44:

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

input:

ABAAAAABBAABBAAAABBBAAAAABABABBAABBBBBABBBABBBAABBAABBABBAAAABBAABBAABBBABABABAAAAAAAABBAAABAAAABBABBBBABBBAABAAAAAABBBBAAABABABABAAABABBBBBBBBABBAABBAAAABBBBAAAAAAABBAAABAAAAAAABAAABBBABABABBAAABABABAAAAABBAABABABBBBAABBABBABAAABBABAAABAABBABABAAABAABBBAAAABBABAAABAABBBBABBAABBBBABBAABBABAAABABBBAB...

output:

NO

result:

ok no solution

Test #45:

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

input:

BBABBBAABBBAABBBBBABBAAABBABABABAABBBBAAABBBBAAAAABABAAAABAAAAAABBBABBBBABAABBABABBAAABABABAAABAAAAAABBBABABBBABABBBABBABAAABBBBABABBBAAAABAAABBBABAABBAAAAAABBBBABAABBBBBBBBAAAAABBAAABBBBBABAAABBAAAAAABBABBBBBBAAABBABABBBBBBBABAABBABABBABABABABABBBBABAAAABBBBBAAABBBBAAAAABBABBBAAAABAABBAABBABAABABAA...

output:

YES
2 4 7 9 12 14 19 21 24 27 28 29 31 33 34 38 41 46 51 53 57 59 65 68 73 75 77 79 81 83 87 89 90 91 94 95 102 104 106 107 111 112 114 117 119 120 122 124 128 130 132 134 139 143 145 147 150 152 158 162 163 165 174 179 180 184 189 190 193 195 202 203 205 210 214 216 218 226 228 230 231 232 234 236 ...

result:

ok good solution

Test #46:

score: 0
Accepted
time: 6ms
memory: 5680kb

input:

ABBABBBAABABBBAABBBABBAABBAAAAAAABBBBABABAAAABABBBBAABBABBAABABABABBBAAAABAABABAABABAABABABAAABBAABABBBBBBBBBBBABABABBABABAAAAAABAABBAABAABBABBAABABBBAABAABAAAAABBAABAABBBBAAAABBABABABABBABBBBABABABABBBBABAAAABABBAABAABBABBABABBAAABBAABABAABABABBABBAABABABAAABBBABBABBABBAAABAABABABABABBABABABAABBAAB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 13 14 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 1...

result:

ok good solution

Test #47:

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

input:

ABAAAAABBBBBABBBBAABBAABBAAABBBBABABABABABAABABBABBBBBABBAABBAABBAAAAAAAABBABAAABBAAAABABBBBAAAAAABAAAABBBABAABABAAAABAABAAAABABAABAABBABBBAAAABABABBAABBABBAAABABBAAABBBBBAABBBABABBBBAAAAABBAAAAAABBABABAAAABBBBAABBBBAABABABAABBBABBBAAAAABBBBBAABBABBABAAABBABABAABABBABBBBBABBAAAAAABBBBAAAAAAAAABAABAB...

output:

NO

result:

ok no solution

Test #48:

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

input:

BBBAABABBABBABABBBAAAABAAAABABBBBBBBBABAABBAAAAAABBBAABABAABBBABABAABBBAABBBBABABBBABBBAABBBBBABBABBBABAABBABBAABBBABBABBBABBBBAABBBABAABBABABBBBAAABABBAAAAAAAABABAAABBAAAABAAAABAABAABBABABBBBAAABAABAAAAAABABABAAABAAAAABBBBBAABBBBBBBABAABBABABBBBBBAAAAAABBAABAAAABBBAAAAAABABAAABBBAABABBABABAABBBABBA...

output:

NO

result:

ok no solution

Test #49:

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

input:

AABAABABBABABBAAAABAABBBABBABBABAABAABBBBABBBAAAAABBBAAAABBAAAABBABBAAAAABAAAAAABBBBAAAABABAABBABABBBBBBBABAAAABBBAABABBAAABBAAABABABABABABABAAABBABABBAABBAAABAABABABBBBBBBBAABAABBAAABBBBBAAABBBAABAABABBBBBAABBAAABBBABAABBBBABAABABBAAAABABBABBBBAABBBAABBBBABBBBBBBABBABBBABBAABAABABABBBBABBBABBBAAAAA...

output:

YES
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 47 48 49 50 52 53 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 77 78 79 80 83 84 86 87 88 89 90 91 93 94 95 96 98 100 101 102 103 104 105 107 108 109 110 111 113 1...

result:

ok good solution

Test #50:

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

input:

ABABAABAABAABBABBBBBBBBBBAABBBAAABBAABBABBBBBBBABBABABAABAAAABBBBBBBBAABBAAAABAABABABABAABAAAAABAABAAABBBBAABBABBAAAABAAABAABBAAABABAABBBBABAAAABBAABABABABAAAABAAABAAABAAABBBBBAABBBABBBBAAAABABABABBBBAAABBBABBBBAABBBABAAAABBBBBAAAABABAAABABAAABAABBBBBABABBBBABBABBBABBABBBAAAABAAABAABBBBAABABABAABABA...

output:

NO

result:

ok no solution

Test #51:

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

input:

ABAABBBBABABBAABAAAABAABAABAAAAAABBBAAABBBBABAABBAAABBBABBABBBBBABABBBBBBAAAABABAAABABAAABAAABBAAAAABABAABBAABBAAABBBABABBBABAAAAAABAABBABBBABAABAABABBABAAAAABBBAAAABBAAAABABAABAABBAABBBAABBAAABAAAAAABBAAABBBBBABBABAAABABABBBBAAAABBBABBBBBBABABBBAABABAAAABABBABABBBBABAABBBBAAAAAAABBBAAABBAABAAAAAAAA...

output:

NO

result:

ok no solution

Test #52:

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

input:

ABBABABABBABABBABBABBBAAAABAAAAABAABBAABABBBBBAABBBAABAAABBAAABABBBAAABBBAABBBBBBBBAAABBBBBABABBBABBABBBBAAAABBABABAABBAAAABBABBABBAAABBBBBBBBABBBBABABABAAAAABABBBABAABBABABABBBBAABBAAAABABBAABAABBBBBAAAAABABAAAAABBABBAABABABAABBBBAAAAABBABBABAABABBAABABBABAAABBBABAABAAABABABAABABBBBAABBBABAABABABBB...

output:

NO

result:

ok no solution

Test #53:

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

input:

BABAABABABBABAAAAABAAABBBBABAAABBABAABABBBAAAAAABABBBAAABAABAABBAABBABAABBAABBBABAABBAABBBABAAAAABBBABAAAABBABBABBBABBABABBBAAABBABAABBABABABBBBAABBBAABBBBBABABBAAAAABAABBBABAAAAAABABBBBBBABBBABABBBBBABABBBBBBAAABBBBABAABBBABBAAAAABBABBBBBABBAAABBAABBBAAABBBAABBAABAABABABBBAAABBBAABBBABBBBAABABAABAA...

output:

YES
1 2 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 56 58 59 60 61 62 63 64 65 66 67 68 70 72 73 74 75 76 77 78 79 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 ...

result:

ok good solution

Test #54:

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

input:

ABBBABABABABABBBBBBBABBBBAABBBABBABAAABABBBABAAAABAABBABBABBABBBBBBBAAAAABBBAAAABBABBBAABBBABBAABAABBAAAABABAABBAABABAABBAAAABAAABAAAAAAAAABBAABBBBBBAABBBAAABABBAAAAABAABBBBBBABBAAABAABABAABAAABAAABBBBAAABBAAAABBAAAABAABABAAAABABBBABBBAAABABAABBABBAABBBABBAABABBAAABBABBBABAAABAAAAABBBAABAABBBAAABBAB...

output:

NO

result:

ok no solution

Test #55:

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

input:

BBAAABABAAAABBBABBBABBAAAABBABBBBABAABBABBBABABBBAAABBBAABBABABBABBAAABBBABAABABBBBBBBAABBABBBBBBBBBABBBABBBAABABABBBAAAABABABAAAABABABBBABAABABBAAAAAABAAABBAAAAAAABAABBAAABBBABBAAAAAABABAABAABABAAAABBBBABAABABBAABBBABBBAABBAAABAABABAABAABABBBBAAABBBBBAABBAAAABAAAABAAABAAAABBBABBABBABBBBABAABAABBBBA...

output:

YES
3 5 6 8 12 15 17 20 23 27 29 33 35 38 40 43 44 45 46 50 53 55 57 59 60 62 65 68 71 73 74 76 78 80 86 89 90 91 100 102 104 106 108 111 113 114 118 121 122 124 125 127 131 132 133 134 137 139 142 144 146 151 152 156 158 164 166 167 170 172 176 179 184 185 186 187 190 193 194 196 199 203 205 207 20...

result:

ok good solution

Test #56:

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

input:

BBBAABBBAABBBBBAAABBABBAABBBAAABBBABBABABABABABBBAABABBABBBBAAABBAABBBAAABAABBAABABAABBBBBAABBAABAAABBAAAABAAABAAAAAAAABBABAAABAABBAABABABABAABBABAABABABABBBBAAABABABBBBAABBBBAAAAABBBBBABAABAABBABAABBABBBAAAAABBBBBBBAABBAABBAAAAAAAABAABABABBAABBBBABBABABBBABBABBBABBBBBAAABBBAABBBABAAAABABBBBAAAAABAB...

output:

NO

result:

ok no solution

Test #57:

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

input:

BABBBAAABBBBABABBABBBAABABAABBABBBBBAAAAAABAAABAABAAABBBBAABBBAABBBABAAAABBBABBBBAABABAABAABAAAABBAAABAAABABBABBAAABBBABBBAAABBBBABAAAAABABABBABBABAABBBBABAAAAAABBBBBAAABABBBABBABBAAAABBBABBABAABBABABABABBABAABABAAAAABBAAAAAABAAABAABABBBBABBAAAAABABBAAABBABBBBAABBABBABABABABBBAAAAABABBABABBBBBABABAA...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105...

result:

ok good solution

Test #58:

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

input:

ABAAAABBBBAAAAABABABBABBABBABBAAAAAAAABAABBBABAABBAABABBBAABAABBABAABBABBAABABABBBABABBBAABAABBABAABAABABBABAAAAAAABABBABABBABAAAABABBAAABABBABABAAAAAABBABAAAABBAABBABAABBBBAAABBBABBBBABBBBBABAAABBBAABABAABBAABBBBAAABABABBAABABABABBAABBBBBAABAABAABAAABAABABBBBAABAABBBAABAABBBBABBBBBAAABABABAABBABABB...

output:

YES
1 3 7 11 15 17 19 21 22 24 26 28 30 38 40 41 45 47 49 50 53 54 57 59 60 63 65 67 69 71 73 75 76 77 78 79 83 84 85 89 91 94 96 98 100 103 104 106 108 116 117 120 122 125 127 131 132 134 137 139 142 143 145 152 154 155 160 162 164 166 168 169 174 177 180 185 190 191 192 195 198 200 201 202 203 206...

result:

ok good solution

Test #59:

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

input:

BBABBAAABBAAAAABBABBBABABBBBBAAAAAAABBBAAABBAAAABBABAABBABAABBABAABBABABBBBAABABBABBAAAAABAAABBAABBBABABABABAABBBABABBBAAABBBABABBBAABBBBABBBABABBBABBBBBBAAABAABAAABBBABBABABABAAABABAABAABAAABBBBABAAAAAAAAABABABBAAAAAABBABABBBBAABBABBBABABBBAABABAAABBABBBAABAAAAABBBBABAABBBBAAAABABBABBBABABAAAABBABB...

output:

YES
2 4 6 7 8 9 10 13 14 15 16 17 19 20 21 23 24 26 27 28 29 31 32 33 34 35 36 37 38 39 41 42 43 44 46 47 48 49 50 51 52 54 56 57 59 60 62 63 64 65 66 69 70 71 73 74 75 76 77 78 79 80 81 82 84 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 105 106 108 109 110 112 113 114 115 116 118 119 122 ...

result:

ok good solution

Test #60:

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

input:

BBBABBAAABABAABAABABBBBABBAAAAABBBBBAABBBABAAAABAAABBAABAABAAABABBBBBAABAABABBBBAAABBBAABBBAAABABBAABABAABBBBABBBABABAAAAABBAABABABBAABBBABBABBABBAAABAAABBAAAABABBBABBABABAAABAABABBAAABAAAAAABAAABBBBABBBBBAABBAAABABAABBAAABBAABABABBABABABBABABABABABBABAABABAAAABABABABABBBABBBABABABBABBBBAAAAAABBAAAA...

output:

YES
1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 21 22 23 24 25 26 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 1...

result:

ok good solution

Test #61:

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

input:

BAABBAAAAABBAABBBAAAABABBABAABAABBBBABABAAABABBAAAABABBABABABBABBAAAAAABBAABAABBBAABABAAAABBAABBBABAAABABABAAAAAABAAAAABBAABABABBABBAABBAABABBABABBAAAABAAAABAAAABBAAAABBABBABAAAABBBBABBBABAABBABBBBABBBABABBABBBBBBAAAABBBBBABBBABAABAAAABBBBBBAABBABABBBAABAABBBBABAABBBBAAABABABABBAABBABBBBABBBBBBAAABA...

output:

NO

result:

ok no solution

Test #62:

score: 0
Accepted
time: 8ms
memory: 6196kb

input:

BBBAABBABBBAABABBBBBBBBAABBABBABBAAAABBABAABBBBAAABABABABBBAAAAAAAAAAAABBBBBABBAABBBAAABBBABBAABBBAABABAABABBAAAABAAAABAABAAABAABBBBBABBBBAAABBAAABABBBABAABABBBBBAABBBBAABABBAAAAAABABAABABABBBABBABABBAAAAAAAABAAAAABBABBABABABBAAABAABBBABBABAABAABBBABBAABABBABAAAAAAABABAAABBABAAAAAAAAAABBAAAABBBABBAB...

output:

YES
1 2 3 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107...

result:

ok good solution

Test #63:

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

input:

BAAAAABBABABBBAABBBBBBABABBAAABAABABABBBBAAABBBBABBBBBAAABBBABBABAABABAAAABABBAABBAAABAAABBABBABAAAABBBBBAABAAABABABAAABAABABABBBAABBAABBAABBABABBAAABBBABAABAAABAAAABAAABABAABABAABBBBBBABBBBABBBBBAAABABBBBBBBBBAAABAABBBBBAABBABBBBABBAABBBAABBAABABABAAAABBAAAAAABBBBAABABAABABBBBBAABABAABAABBBABBBBAAA...

output:

NO

result:

ok no solution

Test #64:

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

input:

BABBAABBBAABBAABAAABBBBBBABAABAAABBAAAAABABABBBABAAABBAAAABBABBAAAABBAABABABBABABABBBABBABBBABBABBBABAAABBBBBAABBBBAABBBAABAAABBBBABABABBAABAABBBBBBABAAABBBABBAAABBABAAABAAAABBABAABBAABAAAAAABBABBBAAAAABBBBBAAABABBABAAAAAABAABBAABABBBBBAAAAAAABABAABBBABABBBABBAABBBABBABBBBAAAABABBBBAAAAAAABAABBABAAB...

output:

YES
2 4 6 8 9 10 11 12 13 15 16 18 19 21 22 23 24 25 26 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 91 92 93 95 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 114 115 116...

result:

ok good solution

Test #65:

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

input:

BABBBBBBAABBAABABABBBAABBABBABABBABBAAABABBBBAAAAAAAAABABBBBBBBABABABABAAABAAABAAAAAABBAAAABAAABAABABAAAAAAAAAABABABBBAAABABBABBBABBBBABABBAABBBBAAAABAAAAABBAAAABAABBABABBABABABABABBBBBBBBBAABABBBABBABABAABABAABBBAAAAABABABAAABBAABBAAAAAAABBAAAAAABABABBAAAABAABBBBABBBABBABAAABBBABABAABBBBAAABAAAAABB...

output:

YES
1 3 9 11 13 14 15 16 17 19 22 24 26 28 29 31 33 34 37 39 41 45 54 55 57 63 65 67 68 70 72 74 76 78 80 85 88 92 95 97 99 100 102 111 113 115 119 122 124 125 126 130 134 135 136 138 139 142 146 150 155 158 162 164 167 169 171 172 174 176 178 179 180 190 192 193 196 197 199 201 203 206 208 210 213 ...

result:

ok good solution

Test #66:

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

input:

BABBBAAAABBBABBBBBBABABBBBBABBBABAAABAAAABBAABABABABABBBBBAABABBAABABABBBBBBABABABBAABAAABBBABABBBAABBBAAAABBABAABBABAABBABBBABBABAABABBABBBABAAAAABAABAABBBBBABABABBBABBABAAAABBBABAAAABABBBABAAABBABAAAABBBBBBBABABBAAABAABBABBBAAAAAABBAAAABAAABBAABABAAABAABBABABBBAABABABBABBBAABBBBABABBBAAABABABAABBB...

output:

NO

result:

ok no solution

Test #67:

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

input:

ABABABBBBABAABBBAABBABAABBAABBAABAAAABAABABABBBBABAABBBABAABABBABBAABABAAAABABBABBAABBABAABABAAAAAAABBBAAABBBBBBAAABAAABAABAAAABAABAAAAAABABABBBBBBBBABAAABABABAABBAAAAABAABABABAAAABBABABABAAAAABBBBBBBAABBAAAAABBBBBBBABAABABBBABABABAABABABBBABAABBBBBBBBAAABBABBBABABBBAAABBBBBABBAAAAABBBABBAABBBBAAABB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 10...

result:

ok good solution

Test #68:

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

input:

AAABBBAABAAAABABBBAABBAAAABBBAABABBAABAAABAABABAABBBBBBBBAAABBAABBAABAAAABBBBBAABBBBAAABBBBBBAABAABAAAAABBBBABBBAABBABABBABAABBABBBAAAAAABBAAAAAABABBAAAAAABABBABABBBABAABBBBABBBBBAAAAAABBABBABBAAAAAABBBBABAAABAABBABBBABAAAAAAAAAABAABBAAAAABBAABBABBABBAAABBBBBBBBBBAABABBBBBBBAABABAAAABBABBABBBBBBABAB...

output:

NO

result:

ok no solution

Test #69:

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

input:

BBBABBAAAABBBBABBABBBBABBAAABBBAAABABBBABBBBAABABABBABABAABBBBBBBBAABBBAAAAABABBBABBAAAAAABBBABABAABAABABAABAABABAABBAABBBABAAAAABBBBABAABAABBABAABBAABBABBAAABABBBBBABBABAAABABBBBBABAABBABBAAABBBBABBAABAAAAAAABABABABABBBABABBBABABBBABBAABABAABAABBAAABAAABBBBBBBABABAABAAAABABBBBAAABBBBAABABABBABBABAB...

output:

NO

result:

ok no solution

Test #70:

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

input:

AAAABBBBBABBBBBBBBABABAAAAAAABABBAABABBAAAAABABAABABBBABBBBBBAABBAABBBBBABBBBAAABAAAABBBABBBABBAAABBAAABBBBBBBBBBABBBAAAABBABBBBBBAAABBAAAAABBABAAAABABABABABBABBAABBABAAABAAAAABBBBAABBAAAAAAAABBAABBABAABBBAAABABABBBAAAABAABBBABBBAABAABBBABBBBABBABABABBAABABBABAABABABBBBBBABBABBAABBAAAABBBBBABABAABBA...

output:

NO

result:

ok no solution

Test #71:

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

input:

ABBBBBABABAABAAAABABBAABAABABBBBBAABBBBABAAABABAABABABBAAAABABBBBBBAAABBBABABABBBBBABAAABBBAABBBABBBAABABBAABABABABABBAABBBBBBBAAAAAAAAABBBAAABBAABAABAAAAAABBBBBBABBABAABBBBBBAABBABAAAABAABBBBABABBABAABBBABAAAABABBBBBAABABBBBBABBAAABABBBAABBBBBBAAAABBABBBAAABAABBBBBABAAABBBAABBAAABBABABBBABABAAABAAA...

output:

YES
2 4 5 6 8 10 12 13 16 17 19 21 23 25 26 28 30 31 32 33 35 40 41 44 46 48 49 50 51 52 53 55 57 58 59 60 61 67 71 72 73 74 76 77 78 79 80 81 82 83 85 87 88 89 90 91 93 96 97 100 102 103 104 105 106 108 110 112 114 116 118 120 124 125 126 127 130 131 132 133 134 135 136 138 139 141 142 143 144 146 ...

result:

ok good solution

Test #72:

score: 0
Accepted
time: 4ms
memory: 5236kb

input:

BBABBAABBBBAAABABBBBAABAAAABBABABABABBBAAABBBBAAABBBBBABBBBBABBAAAABAAABABAAABBBAABAABAAAAABBBABABBBAABBABAAAABABBAAABBBAABAAABABBABBAABBAAABABABBBABABABABAABAABBABBBBBAAABABAAAAABABABBABABAAABBAAABBBBAAAABBABBBABBBABBAABBBABBBABAABABBAAAAAABBBBAAABAAABAABABBABAAABBBABBAAAABAAABABBAAABBABBBAABABBAAB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 26 27 28 29 30 31 32 33 34 35 36 38 39 41 42 45 46 48 49 50 51 52 53 54 55 58 59 60 61 62 63 66 67 69 70 71 73 74 76 77 78 79 80 81 82 83 84 85 86 89 90 91 93 94 95 96 97 99 100 102 103 104 105 106 109 110 112 114 115 116 117 118 119 12...

result:

ok good solution

Test #73:

score: 0
Accepted
time: 6ms
memory: 6856kb

input:

ABABBBBBBAAAAAABABABABAABBBBBBBBABBBBAABBBAABBBABBBABAAAABAAABBABBBBBABABAAAABBBBAABABABBBBBAAABAAAABBBABBABAABABAAAAABAAABBABBBABBAABAAAAABBBBBBBBBBABAABBAAABABAAAABABAABABABBAAABBBBABABAABABABBBBBBAABBABAAABABABABBABAAAABBABBABBBAABBABBABBAABAAAABBBBAABABBABABBAAABAAABBAAAAABBBABABABAAABBABAABABBB...

output:

YES
1 2 4 7 8 9 13 14 15 16 17 18 19 20 22 23 24 27 28 29 30 31 32 33 37 38 39 40 41 42 44 48 49 50 51 52 53 56 57 58 61 64 66 67 68 69 71 73 75 76 77 81 84 85 86 87 88 89 90 91 92 96 97 98 99 100 102 103 104 105 106 108 110 111 113 115 116 117 118 119 121 122 124 125 127 128 129 131 133 134 137 138...

result:

ok good solution

Test #74:

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

input:

ABBAAAAAABBABABBABBBABBAABABAAAABBBABBAAAAABABAABAAAAAAABAAABBBABBBABBAAABAABBAAAABBAAABABBABBBAABABBBBAAABAABBABBBAABBBABABBBAABBAABBABBBBAABAABABABAAABAAAABABBAABABABAAABBABAABBABBABAAAABBAAAAABBBBABABABBAAAAABAAAAAAAAABABAAAABBABBBABBABBABBABABABBAABBBABAABBAABBBBAABABBABAAABAABBBABBBABAAABABBBBB...

output:

YES
2 3 5 6 7 8 9 11 12 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 40 41 42 43 45 47 48 49 51 52 53 54 55 56 57 58 59 60 63 64 65 66 67 68 69 70 72 73 75 76 77 78 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 101 102 103 105 106 107 109 110 111 113 114 115 116...

result:

ok good solution

Test #75:

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

input:

ABBBBBBBBBABBBBBABBABBABBABAABABAAABBBABBBABAAAAAAABBBAABAABBABAAABBBABABBBBBBABBABBBAABABBBAABAABABABBABBAAAAAAAAABBABAAABBABBBBABABBABBABAAABBABAABBBAABBBBABBABAAAABAAABAABBBBAAAAAABAABABBBBAAABBBAAAABAAAAABABABBABBAAAABABAABBBBABBBAAAABBAAAAAABBABBBBBAABBBAAABBAABABBBAAABBAAABBBBABBBBABABBAABBAAB...

output:

YES
2 8 9 10 12 13 14 15 16 18 19 20 23 24 25 26 27 28 29 30 32 34 35 38 39 42 44 48 49 50 51 53 54 57 58 59 61 63 66 68 69 71 72 76 77 78 80 81 82 85 87 88 89 92 95 98 99 100 101 102 103 104 105 106 110 111 112 113 114 115 117 118 119 122 123 124 125 128 129 131 133 134 135 137 139 141 142 144 146 ...

result:

ok good solution

Test #76:

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

input:

BAABBBBAABAABBBBABBABAAAAABAABABBBABBABBBBBABABABAAAABAAABAABAAABBABBABABABAAABBBAAABAAABBABAABBABBAAAABAAABBBBBBBAAAAABBAABAABBABBABABBAABAABAABBABBAAABAABBAAAAAAAABBABBBAAAAABBBAABAABBABABBAAABABBBBBBBAAABAAABBABBBBBABAAABBABABAABAAAABBBAAABBBAABBBBBABBBBBBAAAABBBAABBAAABABBBAAABAAABBBBBBAAAAABBAB...

output:

NO

result:

ok no solution

Test #77:

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

input:

BBBABBBAAABAAAABABAABABABBBBBBABAAABABBABBBBBAAAAABAAABBBBBBBBBAAABBBABBABBABABABAAAABAAABABBABBABABBABBBABAABBABBBBBBBBBABAAAAAAAABBBABBBAABBABBAABBBAAABBABAAAABAAABBBABBBAAABBBBAABBAAAABAABBABBBAABBAAABAABABBABAABABBBBBBABBBAAAABAABAAABABABBAAAAABBABBABBBABAAABAAABAABBBABAAAAABBABBABABABABBABBBABB...

output:

YES
3 4 7 11 14 15 16 17 19 20 21 22 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 45 51 52 53 54 58 59 60 61 62 63 64 65 66 69 71 72 73 75 77 79 81 85 86 88 89 91 93 94 96 97 98 100 101 102 104 105 107 109 112 116 117 118 119 120 121 122 123 129 130 131 135 136 137 138 139 140 142 143 145 147 ...

result:

ok good solution

Test #78:

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

input:

ABBABABBAAABABBBABAABABBABBBABABAABABBBABAAABBAABBAAAABBBBAABBABABAABAABAAABBBAABBBBBBAAABBBABBBBAABBBBABBAABABBBBBAABBAABBAABABBBBBBAABBAABAABBBABBBBBABABBBAABAAABAAAAABBBBAABAAABAAAABBABBBBABAABBBBBBABABBABBBAABBBAAAABBAAAABBBBBBBAAABABBBBBABBBAAABABBBBBBBAAAAAAAABBBBBAABBABAABAAAABBABBAABBAAABAAB...

output:

YES
1 3 4 5 7 9 11 12 13 16 18 20 21 22 25 26 27 28 29 30 31 33 34 35 36 39 41 42 43 44 46 48 49 50 52 53 54 56 57 58 60 63 64 65 66 68 69 70 71 72 74 75 78 79 80 84 85 86 88 89 91 92 93 97 100 101 102 103 105 106 109 110 112 113 114 115 117 118 119 120 121 123 124 125 126 127 128 129 130 131 132 13...

result:

ok good solution

Test #79:

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

input:

BABBAABAABABAAABAABAABAAAABBABABBABABBBAAAAABABABBBBAAABABBBAAAAABBABBABBBBBABBBABAAAAAAAAAABABABBAAABAABBAAAABABBBBBBAABAABAABBAABAABBABBBBBABAABABBAAAABBBBBBAABAABAABBAABBABBBBABBAABBBBABBBAAAAAABABBBAAABBAAABABBABAABAABBABAABBBBABABABAAABBBAAABBBABAAABBABABABABABAAAABBBBABAABABBBAABAAAAAABABBABBA...

output:

NO

result:

ok no solution

Test #80:

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

input:

BABABBBAAAAABBBAABBBABBABABAAAAAAAAABBBBABBABBAABABBABBBBABABAAAAAABBABBBBABABBABBBBBBBAAAABABBABABBBAAABABAABBBBBABBAABBABAAABAAABBABBABBBABABAABAAAAABAABBBABBBBBBAABABBABABABAAABAAAAAAAABBBABAAABBAABABABABBABAAAABAABBBAAAAABABBAAABBAABAAABBBBBABAAAABBBABAAAAAABABABAABBAAABAABABBBABABAABBAABABBABAA...

output:

YES
1 3 5 8 12 16 18 20 21 23 24 25 27 33 34 35 36 41 43 45 46 49 51 52 54 55 56 57 58 60 61 65 66 67 70 75 77 79 81 82 83 84 85 86 87 91 93 94 95 96 97 98 99 100 101 103 104 106 107 108 109 110 111 112 113 114 116 117 119 121 123 126 127 129 130 132 133 134 135 136 139 141 143 145 147 148 149 150 1...

result:

ok good solution

Test #81:

score: 0
Accepted
time: 6ms
memory: 5656kb

input:

ABABABABAABBBAAABBABBAAAAABAABABABBAAAAABABABABBAAABABBAAAABAAABABAABABABBABABBAAAABBBABAABAAABBBBABABBBAABBAABBBBABBBBBBBAAABAABBBAAABBABABBBABABBAAABBBBABBBAABBABBABABBBBBBBABABBABBABBBBABAAAAABBBBBABBAABBBBBBBAAABAAABABAAAABBAABABBABBBAAAABAAAABABBAABBBBABBABAAABBAAAABABBBBBBABABBBABABABBBABAAAAA...

output:

YES
2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 79 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 1...

result:

ok good solution

Test #82:

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

input:

ABBBBAABABABAAAAAAABABABBAAABBBABBBABABAABBBAABAAAAABABAABAABABBBABAABAABBBBABBABBBBABAABAAAAAABBAABAABABBBBAABBABAAAAABAAABABAAABBABBAAABBABABAAAAABABAAAAABABBBBAAAABABBBABBBABBBABABABBBBBAABBABAABAAAAABAAAAAABBBABBBABBBABAAABBBBABAAAABBBAABAAABBABBBBABBBAAAABBBBBBBBABABAABAAAABBAAAABAABBBAAABABABB...

output:

YES
1 2 3 4 5 7 8 9 10 11 12 15 16 17 18 19 21 22 23 24 25 26 27 28 30 31 33 34 35 36 37 38 39 40 41 42 43 44 46 47 49 50 51 52 54 55 57 58 61 63 64 65 66 67 68 69 70 71 72 74 75 76 77 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 97 100 102 103 104 105 106 107 108 110 113 114 115 116 117 118 1...

result:

ok good solution

Test #83:

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

input:

BAAABAABAABABAAABAABBBBABAABABBBABBABABABABAABBBAABAAABBBABBBBBAAAAAAAAABBAABBABAABAAABAABABAAAAABBBABABAAAAABABABAAAAAAABBAABBAABBBBBAABABBBBBBBABBBABBBAABBABABABBAABBABBABAABABBABAAAAAABBBABABAABBBAAABAABABBBABBBBAABBAABABAABAABBABBABBBAAAAABBBAABBBBBBBABABBAABABBBBBBBABBABAABAABAABABAAABAAABBABBA...

output:

YES
2 4 5 7 9 11 12 14 17 20 23 24 26 27 29 32 33 35 37 39 40 41 42 43 46 48 50 51 55 57 58 64 72 75 76 79 81 82 83 87 90 91 93 98 101 102 104 110 111 113 115 122 123 125 127 129 135 136 137 138 146 149 150 154 156 157 159 161 162 164 167 168 170 172 173 176 178 179 181 187 190 191 193 194 197 200 2...

result:

ok good solution

Test #84:

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

input:

BBBBBABABAABBBABBBABBBAAABBBBAAAAAABABBABAABAABAAAABBBBBABABABBBBBAAAABBBBABABAAABABBABABBABBAAABBBABBBAABABABABABAABBAABBBBABABBAABBABBAAABAABBBBBAAAABABBBAABAAABAAAAAAABBBAAAAABAAABBBAABABBAAABBBBBBBABABBABBABBABBBABAABABBAABABABBABBBABBBBBAAABBBAABBABBAAAAABABABBBAABBBAAAAAAAAAABAABAAABAABABABABA...

output:

YES
5 7 8 10 12 14 16 18 19 23 26 30 35 37 40 42 43 45 46 48 52 57 59 61 66 71 74 75 76 78 81 83 85 86 87 88 91 94 97 99 100 103 105 106 108 109 110 111 112 114 117 119 121 125 126 128 130 131 133 135 137 140 142 147 152 154 157 159 163 170 174 179 183 186 187 189 192 195 202 204 206 208 210 213 217...

result:

ok good solution

Test #85:

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

input:

BABBAAAAABAABBBBAABABAABBBABABBAABABBBBBBBBAAAABAAABBAAAAABAAAABBBBAABBABAABBAAAAAAABBBBAABABABBABAABAAAABAABBBAAABABAABABAAABBAABABAAAAAABBBBBBABBAABABBABBBBABBBBABAAAABBABBABABAAAAAABBBABAAAABBBABBBBABBAAABBBBAABABAABAAAAAABABBBBAAABBBABBBABBBABAAABBBABBAAAAABBAAAABBABBBBABABAABBBBBBBBABAABBBBAAAA...

output:

YES
1 2 5 9 11 12 16 19 21 24 27 28 29 31 33 34 35 43 47 48 52 53 59 63 68 70 72 74 75 77 84 89 91 93 94 96 97 98 100 102 105 106 109 112 114 115 117 120 121 123 125 127 129 130 132 138 145 147 149 151 154 158 159 164 165 169 171 172 175 177 178 185 187 188 189 193 196 197 201 202 204 208 212 213 21...

result:

ok good solution

Test #86:

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

input:

AABBABBBBBBAAABAAAABBBABBAAABBBBBBBABBBABAABABABBBBBBBBBBAAABABBABBBABBBAAABABBABBBABAABABABBBBBABBBAABBABBBABBBBBABBBBBBAABBBBABBBBBABBBAABABABABAABABAABBBBABBBAAAAABBBBBBBBBABBBBAABBBABAAABBAAAABBAABBAABAABABBBBBBAABBABAABABBBBBABABBAABABBBBABAAABBABBABBAABABABABABABBABAAAAAABBBAAAABAABBBAAABAAAAB...

output:

YES
3 4 5 7 8 9 10 11 13 14 15 16 17 18 19 21 22 23 24 25 28 31 32 33 34 35 36 39 41 43 44 45 46 47 50 51 52 53 54 55 56 57 59 60 61 62 64 66 67 68 69 71 72 74 75 77 79 81 82 83 84 85 87 89 91 93 94 95 96 97 99 100 101 102 104 105 107 108 110 111 112 113 114 115 118 119 120 121 123 127 128 132 133 1...

result:

ok good solution

Test #87:

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

input:

BBBABBBABABAABBAABABAABAAAAAABBBAAABBBABAAABAABAABAABAAAABAABAAABBAABABBBBBAABBBBABABABBABBBABAABAABBBABAAABAABABBBABABABBABAABABBBABBBBBAABABAABAABAAAAAABABBAAABABBABBAAAAABABBBBABAABAABAABBAABAAAABABAAABBBBABBAAAAAABBAABAABABBBBAAABBAABBABAAABAABBBBBBBAAAABBABBABBBBBAAABAAAAAABBBBBAAABABBABABBBBBA...

output:

YES
3 4 6 7 9 11 13 16 17 18 19 20 22 23 27 28 29 31 32 35 38 40 44 45 46 47 49 50 51 52 53 55 56 57 59 60 61 64 65 66 68 69 70 75 77 79 80 81 82 83 84 85 87 88 89 91 92 93 95 96 98 99 102 104 107 108 109 110 111 112 113 114 115 117 119 120 122 123 124 125 126 127 128 130 131 132 137 140 141 143 144...

result:

ok good solution

Test #88:

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

input:

AABABABABAAABABABAABBBAABBBBAAAABBAAAABBBBAABABBAABBBABBBAAABBAAAABAABABBAABBBAABBBBBBBABBBBAAABAABBBAABAAABBABBBBAAABBABBABAAAABAABABAABABABBAAAAABBABBBAABBBAABBAABBBAAAABAAAAAABAABAABAAABABBAAAAAAAAABABAABABBBAABBBAAABBABAAABBAAABBBAAAABBBBBABAABAABBAAABBBABBBBBABABBAABBABBAABABBABAABABAABABABBBBB...

output:

NO

result:

ok no solution

Test #89:

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

input:

AAAAABBAAABAAABAABBAAAAABABBBBABAABABBBBAAAABABABAAAABAAABBAAAAABBBAABABBAAAAABAABBABBBBAAABBBAABBBBABAAABABAAAABABAAABAAAAAAAAAABBBABBBBBBBABAABABAABBAAABAAAAABABABBABBABBBBAAABABBAABBABAAAAABAAABBBBAAAABABABAAABBABBBABBAAAABABBBABABBBABABAABAAAABAAAABBABBAAABABBBBAABAABBAAAAABAABBABBAABAAAAABBBBAA...

output:

YES
5 8 11 14 16 18 20 24 25 27 31 33 34 36 41 45 46 48 49 53 55 58 59 64 68 69 71 73 78 80 82 84 89 91 94 96 101 103 105 106 107 109 112 113 114 116 119 130 132 133 141 142 144 146 148 150 152 154 156 161 162 164 167 170 175 178 180 181 184 186 187 192 194 196 201 205 206 207 208 209 212 214 216 21...

result:

ok good solution

Test #90:

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

input:

AAABABAABBAAABABBBBBBAAABABAAABABBABBAABAABAABABBBAABBABABBBAABBABBBBAABBBBAAABBBBABAAABBBABAAAAAABBABABABABBBBABBBABAABBBBAAABBAABBAAAABABABBBBBBAAABBABAABBAABBBBBBBBBABBAABAAABAAAAABBAAAABABBABBBAABABAABBBABAABAAABABBAABABAABABABBABAAAABAABABABBABAABBAAABBBABBBBBAAABAAABBBBBAABABBABABABBBBAAABAAAB...

output:

YES
3 5 6 8 10 13 14 15 21 25 27 30 31 32 34 36 37 39 41 43 45 47 51 53 54 55 56 58 60 63 64 65 67 68 69 71 72 73 74 75 78 81 82 83 84 87 90 91 92 97 98 100 102 104 106 107 108 109 110 111 112 114 115 117 119 121 122 123 126 129 130 132 137 138 140 146 149 151 152 153 156 157 158 159 169 171 173 174...

result:

ok good solution

Test #91:

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

input:

ABBAABBBBAABABAAABABBAAABAAABBAAABABAABAABBBAABAABBBAAAAABBAABBAABAABBBBAAABAABABABABAABAABABBABAAABABABBABBBBABAAABBBBBAAAABBAABAAABAAABABBAAABBABBBAABABAAAABBBBBAAAAABBBAAAAAABAAABBBAAABBABBABBBABBBBABBBABBABABBABABAAAAABAAAABAABBBABAAAABBBAAAABAAAABAAABBABAAABAABBAABAABBAABAABABAAABBBAAABBBAABABB...

output:

NO

result:

ok no solution

Test #92:

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

input:

BBBBBBAABBABAAABAAAAABAABBBABBABABAAABAAABBABAABAABABAABABAABBABBBBBBBBBBBBBBABBBABBBAAAABBBBABBBAAAAAAAABAAABABABBABBBAABBBABABAAAABAABAAAAABABBBBAAABBABAAAABAABAABBBBBBBBABBBBAABABBABBBAAAAAAABBAAAABABBAAAAAAABBAAABBAAAAAABBBAABBBBABBABBAAABBBBAABABAABAAAAABABBAABABBBBBBBAAABAABABBBBBBBBABBABABBAB...

output:

NO

result:

ok no solution

Test #93:

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

input:

BAABBBAABAABAABABBABABBBABABAABBAABAABBABABAAABBBBBBAAABBBAABBABABBAABAABAABBBBABABBBBBBAAABBBBAAAAAAABBBAAAAAAABABABBAAABABABABABAABBABBBABBBABBBBABBBBABBABBABABAAAAAAAAABBBBAABBBABAABBAABABAABBBBBAAAAAABBBBAABAAAAABAAABBABBBBBABAABBABBBAABBBABAAAABBAABBABABABBBAABBBAABBAAAAABBBABBBBBBBABABABABABAB...

output:

NO

result:

ok no solution

Test #94:

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

input:

BBBBAAAABBAAABAAABBAAABBAAAAAABABAAAABABABABABBAABABAABBABAABBBAAAAAABBBBBAAAAAABABBBBABAAAABBAABABBBAAAABBBBBBABBAAABBAABAABBBABBBBBBBAABBBABABABABAABAABABBBBABBBABBAABAABAAABAABBBBBAAABBABBBAABBAAABBBABBABBBABBAABAABBBBAABABAABBBBBBABBAABBBBAAABBABABBBAABABBAAAAABABABBABBBBBBAABBBAABAABBBAABABBABA...

output:

YES
4 9 10 13 15 17 19 23 25 30 32 34 38 39 40 41 43 45 48 49 50 51 53 54 57 59 61 63 69 74 79 80 82 86 87 88 92 95 96 98 100 101 104 105 112 114 117 118 119 121 122 124 128 135 137 140 142 143 144 146 148 149 150 151 152 153 154 155 159 161 162 163 164 165 166 169 170 171 172 176 177 178 182 183 18...

result:

ok good solution

Test #95:

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

input:

BABBBBBBBBAABABAABBABABABBBBBBAAABBBABAAABBAABBABBBAAAABAAABBBBBBBAABBBBAABBAAABBBAABBABAABBAAABABABABAABABAABAAABBBAABAAAABBABBBAAABBBAAAABAAABBABAABABAABBBBABBABBBAABBBBABAAAABAAABBAABBABBAABBAAAAAABAAAAABBAAABAABAABAABBAAABABABBBAAABABBAAAABABBAAABBBBABABAAAABBBAABABAABAAAABBAAAABBBAABBABBBBAAAAB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 79 80 81 82 83 84 85 86 88 89 90 91 92 93 94 95 97 98 99 100 101 103 104 105 106 107 109 ...

result:

ok good solution

Test #96:

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

input:

AABAAAAAAAAABABBAAAAABABABAAABAABAAABBAABBAABAABBAAAABAABBBABBBBABBABBAAABBAABABAAABBABABBBBBBBAABBABAABBBBAABABBABBBABABBAABABABBBBAABBABABABAAAABBAAAAAAABBABABBAABAAABBBAAABAAAAAABBAAAABAAABABBBABAAAABBBBBABABBABAABBAAABBAAABBAAABBAABBABABAAAAABAABABABBBABBAABABBBBABBABABAAAAAAAAABAAABAABBBABAAAAA...

output:

NO

result:

ok no solution

Test #97:

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

input:

ABABABBABBABAAAAAAAABBABBABBAAAABBBBBABBAAAABBBAABAABBAAABABBBBBBBABAABBBABBABABBBAAAABABABBBBBAAAAABBBAAABBBBBBBAABBBBAAABAAAABABBABAAAAABAAABBAAAAAAAAAABABBBAABBBBBBBAABABBAAAABABABBBBAAABABABAAAAABABABBBAAAABBAABBABAAABABABAABABABBAABABBBAAAAABBBBBAABBAABBBBBBABAABAAAAABABAAABABBAAAABAABBBAABAAAB...

output:

NO

result:

ok no solution

Test #98:

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

input:

BBBBABABABAAABBAABAAABABABBBABAABABABBABABAABBBBAAAABAABABAAAAAABABBBBABABABBBAABBBBABABBBBAABBAABABAABBAAABBBBAABAAABABABABBABABBBBBAAAAABAABAAABBABBBBAABAAAABBABAAAAAAAABABABAAABBAABBABABBBABBABBBAABBBBABBBAABBBAABBBAABAAABABAABABABAAAAAAABAABBBABBABAABBABBBBBBABABBABABAABBBBBABBBBBAAAAAABABBBBBBB...

output:

YES
4 6 7 8 9 10 13 15 17 18 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 42 43 44 46 47 48 52 53 54 55 56 58 62 63 64 66 68 69 70 72 73 75 76 77 78 79 80 83 84 85 87 88 89 90 91 92 93 95 97 98 99 101 102 103 104 106 107 109 110 111 112 113 115 116 117 118 119 120 121 123 125 127 129 130...

result:

ok good solution

Test #99:

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

input:

ABAABBAAAAAABABABBAAABABBAABAABBBBBBBABABBABABAAAAABABBAAAAABBABBAAABBAAAABABABABAABBBAABABAABAABAAABBBABABAAAAAABBAABAABBBBBABAAABBAAABBBABABBBBAAAABABAAAABBBABABBABABAABBABBBABBBBABABBAAAAAABBBAABABABAABBBBABAAAAABAABAAAABABBBAABBBBBABBBBBAABAAABBABAABBBABBBBAAAAAABBBABBABAABBBAAABABAABBBBBBBBBABB...

output:

YES
1 3 4 6 9 10 11 12 13 15 16 17 18 21 22 23 25 27 28 29 30 32 33 34 35 36 37 39 40 42 43 44 46 49 50 51 52 53 56 57 58 59 60 62 63 64 65 67 68 71 72 73 74 76 78 79 81 83 85 86 87 88 89 90 91 93 95 96 97 99 100 101 102 103 105 106 107 110 111 112 113 115 117 118 120 123 124 125 126 127 130 131 132...

result:

ok good solution

Test #100:

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

input:

BAAABAABBBAABABAABAABBBAABBABBBBAABAAABBBABAABABABABBBBBBABAAABAAAAABABBAABAABABBBBBABBAAAABAAAABBBAAABAAAABABBBBAAABBBABAAAAAAAAABBBABBAAABBABBBBBBABBAABAABAABAAABAAAABAAAAAABBAABAABBBAAABBBBBAAAABBBABBAABAABBABBABAABABABBAABBAABAABABAAABABAABBBBBABAAAABBBBBAABBAAABBBBAAAABBBAAAAABABABABBABAAABABBB...

output:

NO

result:

ok no solution

Test #101:

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

input:

AAAAABBBBBAAABBAAAABAABBAAAABBBABABBAAABBBAABAAABBBBABABBABBBBABBBABABBBBABAABABBABABABBAAABBABABAABABBBABBABAAAAAABAAABABBBAABABBBABBBBBBAABAABABABBBABABBAAAABBAAAAAAABAAAABABBBBBABBAAAABBBAABBBBABBBBBABBABABABBABBABAABAABBBAABBBBBBBBBABBBBBBAAABBBBBAABAABBABAAABBBABBABBBAAABBBBBBAABABABAABAABAAABB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103...

result:

ok good solution

Test #102:

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

input:

AABBAABBBAAABBBBBABAABBAABBBAABAAABBABBABAABBBBAABAAAABABBABABABBABBABAAABABAABBABBABBBABBBABBBABBAAAABBBBBAABABBABBBAABABBABBABBBABBBAABABBBAABBABBAABABBABABBAABBAAAABABABBABABAAAAAABABBABAABABABBABAABABABABBABBBAAABABBBABBABBBBABAAAABABBBBBABBAABBAABABBAAABABBABAAAABBABBBBAABBBBABBBBABBABAABAABBBA...

output:

NO

result:

ok no solution

Test #103:

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

input:

BABBABABBABBABABBAAAAAAAAABBBBABBABAAABAABBAABABBAAABBBBBABABAAABBBBAABABBABBAAABBAAABBABBBBAABAABAAAABAABABBAAABABBBBAABABBBAABABBBBAABAAAAABBABAABABABAABBBAAABBABAAABAABBAAABBBABAABBAABABBABAABABAABABBABBBABBABBAAABABBBABAABAAAABBBABBBABBBAABABABABABBAAABBAAAAAABBABABBAABBBABBAAABBBABAAABAABBABBAB...

output:

YES
2 4 6 8 9 10 11 12 14 15 16 17 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 70 71 72 73 74 76 77 78 79 80 82 84 85 87 88 90 91 92 93 94 95 97 98 100 101 102 103 104 105 106 107 109 111 112 114 115 116 117 1...

result:

ok good solution

Test #104:

score: 0
Accepted
time: 4ms
memory: 6536kb

input:

ABABBAABAABAABABBAABAABBBAAABAABABBABAAABAAAABABBBBBBBBBABBBBABBBABABAABABABBBABBAABABBBBBAABBABBBBBAABBABBABABABABBBAABBBAABBBABAABAABABBAAABBBBABBABBBAAABAABBAAABABAABBBABBBBABAABABBAAABBABABABABBABAABABBBABBAAABABBABBAABABABAAABABBBBBAABBBBABABABABAAAABABBBABBAAABABBABAABABAABABABABBBBAAAABAAABAA...

output:

YES
1 2 4 5 6 7 8 10 11 13 14 15 17 19 21 22 24 25 28 30 31 32 33 35 37 40 41 43 44 45 46 47 55 56 58 59 60 61 62 63 64 65 66 67 69 70 71 73 75 78 79 80 81 82 83 85 89 90 93 94 95 99 100 103 104 105 107 109 110 111 113 114 116 117 119 121 122 123 124 127 128 129 130 131 132 134 135 136 138 141 144 1...

result:

ok good solution

Test #105:

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

input:

BBAAAAAAABBAAABABBBABAABBAABBBABAAABBBBABABBBBBBAABAABAAAABBABBBABABAAAABBAAABBABABBBAAAAABABBABAAAABABAABABBABABBBABBBAABAAABAABAAAAABAAAABBBBABBAAAABAAABBABBAAABBABBBBAAABABAAAAAABBBABABAABAABAABABAABBBAABBAABABAABBBAABBABBAABBAAAABABAAAAABBBAABABBABABAAAAABBABBBBBBBBABAAABBBABBBBAAAAABBBABABBBABA...

output:

YES
2 7 8 9 11 13 14 15 16 18 19 20 21 22 23 24 25 27 28 29 30 32 35 37 38 39 41 42 45 46 47 48 51 52 53 54 57 58 60 61 62 63 64 65 66 68 70 71 72 74 77 79 81 82 84 85 90 92 94 96 97 98 99 100 102 104 105 107 110 111 113 114 115 117 118 119 121 122 125 126 129 134 135 136 137 138 139 142 143 144 146...

result:

ok good solution

Test #106:

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

input:

AABBBBBABAABBAAAAABAABABAAAAABBBAABBBBBBBBABABBBBBAABBABBBBBAABBBAAAABABAABBBABBBBBBABBBBBBABBABABBBBABBABAABBAAABAAAAABAAABBBABABBBBAAAABABABAABBAABBABABABAABAAABABBABAABBBBABBBAAABBBBABBBAABBBABABAAABBBBABABBAABAABABBBABABBBAABBAAAABBAAABAABABBAABBBABBAAAAABABAAABBAABBABABBBBABBBBBAABAABBAABBBABBA...

output:

YES
2 7 9 12 13 18 19 20 21 23 24 25 26 27 28 29 32 34 39 40 41 42 43 45 48 49 50 53 54 55 59 60 62 64 65 68 69 71 72 74 78 84 86 87 88 89 90 91 93 94 96 97 99 100 101 102 105 107 108 110 112 113 114 119 121 122 123 126 128 129 133 136 137 138 139 140 142 143 144 146 147 148 150 152 154 156 159 161 ...

result:

ok good solution

Test #107:

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

input:

AAABBBBABBBBAABBBBBBBABAABABABAAABABABAABBAAAABABBAABBABBAABBBBAABBBBBBABBBAAAAABAABBABBBBAABBBABBBBBBABAAAAAABBABBAABBABAABAABBAAABABAABBBBBABABAAAABAAABBABBAABBBABBAABABABABBBAABAAABAABBABABAABABAAAABBBAABAABBAAAAAABBBBABBBBABBAABBBBBBABBABAAAAABBBBBABBBBBBAAABAAAAAABABABBAABABBBABBBBABBABABABAAAA...

output:

NO

result:

ok no solution

Test #108:

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

input:

ABABAAABBABABBABABBAABAABBABBABAAABBBBAABABAAAAABAAAABBABBBABBAAAABAAABAABABABBAAAABBBABBABBABAABBAABBAAABBBAAABAAABAAAAAAABBAAABBBABAABABABBAAAABBAAAAABBBABBBAABBAABABAABAABABAABBAABBABAAAABBBBBBABAAAAAAAAAABABABABBABAABAABBAAABBBBBAAABABBABAAAABAAABBBABBABABAABABBBAAABBAABAAAAABBABBAABBBBABBBABAAB...

output:

YES
2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 23 24 26 27 30 31 32 33 34 36 37 38 41 43 44 45 46 47 48 49 51 52 53 54 55 56 58 59 61 62 64 65 66 68 69 70 71 73 74 76 78 79 80 81 82 83 84 85 86 87 89 91 92 93 94 95 96 98 100 102 104 105 106 107 108 110 111 113 114 115 116 120 121 122 123 124 125...

result:

ok good solution

Test #109:

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

input:

BABAABBBABBBBABBBBBBABBABAABBAAAAAABBBAABABABBBBABABABBBBBBAABBABBAABBBBBBABBBBBABAABBBBAABAABAAAAAAABAAAAABBABAABBBAABABBAAABABAAABABAAABBBBBBBBAAABAABAABAAAABAAAAABAABBBABAABBBABBABBABBAABBAAABABBBAABAAABAABBBABAABBBBABBBAAABBBBBBBAAAABABABAAAAABABAABABABAABBBBBAAABAABBAAABABBBBABAABBBAABBAAABBBAA...

output:

YES
1 2 3 5 7 8 9 10 11 12 13 14 16 17 18 19 20 21 23 25 26 27 28 29 33 34 35 36 37 38 40 41 43 44 46 47 48 50 51 52 53 57 58 59 62 63 64 65 66 67 68 71 72 73 74 75 76 77 78 79 80 82 83 84 86 87 88 89 90 92 93 94 96 97 98 99 100 101 102 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120...

result:

ok good solution

Test #110:

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

input:

BABABABBBBABABBABABABAAABAAAABABBABABABBBBAAABABABAAABABBAABABABABABAABBABAABBAABBBBAABBABBBAAABBBAAABABABABABBBBAABABAABBAABABBABBABBBBAAABBAAABAABBABBABBABABBABBBBBBAAABBABBBBBABAAAABAABAAABBAABABAABABABABABBABAAAAABBABABABABAAAAAAABAABABAABBBAABABBAABAAAABAAAABAAABABBBAAAAAAAABAAABAABABAAABBBABBB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 ...

result:

ok good solution

Test #111:

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

input:

BABBBAAABBABABBABABBBBBBBBAAAAAAAAAABBBAAABBABBAABABAABAAABAABABABAAABBAABABBBBBABAABABBAABBAABABAABBABAABBBAABAABBAAAAABABBAABBBBABBAAABAABBBABABBBAABBABABBABBBBBABABBBABAABABABAABABAABABABABAABBBAABBAAAAAAABAAABAABBAAAAAAABBBAABABBBBBBBBBBABAAAABAAABAABBABBBABBBABBAAABABBBABBBBABBBBBBAAABAAAAABABA...

output:

YES
1 3 4 5 6 7 8 9 10 12 13 15 16 18 23 24 25 26 29 30 31 32 33 34 35 36 39 42 44 46 47 48 49 50 51 52 54 55 57 58 59 61 62 63 64 65 66 67 68 69 71 73 74 75 77 78 79 80 81 82 84 85 86 88 90 91 92 95 97 99 100 101 103 105 106 107 108 109 110 112 113 114 115 118 119 120 121 122 124 127 128 129 130 13...

result:

ok good solution

Test #112:

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

input:

BABBAABBABBBABBBBBBAABABBABABAAABBABABBABAAAABBAAAABBAABAAABABAABABABABBBAAABBBBABAAABAABAAAAABABABBAAAABABAABBABBBAABBBBABBBAAAAAAABBABAAABBBAABBABBABBBBBAAAABBBBABBAAABAABBAABBBBAABBBBAABABAABAAAAABABAAABBAABAAABABBAAABBAAABAABBAABAAAABBBBAAAAAABBAABABBBBAAAAABBABAABBBAAAABBAABAAABBBBAAABBAAABBBBA...

output:

NO

result:

ok no solution

Test #113:

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

input:

ABBABABBBBBAABBABABBAAAABABBAABBBBBBBABABBBBBBBBAABABAABBBABBABAAAABBABBBABAAAAABABABABAABBBAAABBBBBABAABBAAAABABBABABABBABABBBAABABBABBAABBBAAABBABABAAABABBBABBBBBBBBBAABAAAAAAABBBBBBBABBABBAABBABAABBBBABBABABBABBABBBBBAABBAABAABABBABAAAAABABAAABBBAAAABAABABABBBAAAAABAAAAABAABAABBAAAAABBBABAABBABBB...

output:

YES
1 4 5 7 11 14 16 18 20 25 26 27 28 29 30 38 39 40 45 46 47 48 51 52 53 56 57 58 59 62 63 67 69 71 72 73 74 75 80 81 83 85 86 88 89 93 94 95 101 102 104 105 106 110 112 113 114 116 117 119 121 123 124 127 130 131 132 133 134 135 136 137 138 139 140 141 144 146 147 148 149 150 152 153 155 158 159 ...

result:

ok good solution

Test #114:

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

input:

ABBBBABABBABBABBBAAABABAABABAAABBAAAAAAABAABABABBAABBABABABAAABABABBABAABABBBBABBAABAABAABBABABAABBBBBBBBBBABABBBABBBBAABABAAABBBBBAABAABAABABABAABBAABBBBBBBBBBBABAABABBBABAAABBBABBBBABBBAAAAABBAAAAAABAABBBBBBABABBABAABAABABABABAABBABABBBABBABBAABABBBBBABABBABAABABABBBABBAAAABABBABABBBAABBBABAABABBB...

output:

YES
2 5 6 7 9 11 14 17 20 22 23 26 27 29 31 33 40 42 43 45 46 48 49 52 54 55 56 58 59 62 63 64 66 69 71 72 73 74 78 80 82 84 87 90 92 94 96 98 107 109 110 114 118 121 123 126 131 134 137 140 141 143 145 147 148 151 162 163 165 166 168 171 172 175 178 180 184 187 192 194 201 203 209 210 212 214 216 2...

result:

ok good solution

Test #115:

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

input:

BBBBBBAAAABBAAAABBABBBBABABABAABABAABBABBBBBBBAABBAAAAABBABBBBAAABBAAAAABABBBBBBABABABBAAAABBBABBBAAABBBBBBBABBBBAABBAABAAABABAAAAAAABAAABBBABABABABAAABAABAABABAAABBAABAAABAAABBBABAAABAAAAAAABAABABBBBBAAAABAABABBABBAABBBBBBABAABABBBABABBAABABABAAABABAABAAABBBAABBBAABBABAABBAABBABABBABBBBAAAAABABAABB...

output:

YES
2 3 4 5 6 8 9 10 11 12 15 16 19 22 23 25 26 27 28 29 30 31 32 33 35 36 39 43 44 45 46 48 49 50 51 52 53 54 55 57 59 60 61 62 65 67 69 70 71 72 73 75 76 77 78 79 80 82 83 84 85 87 89 90 91 93 94 95 96 97 98 101 103 104 105 106 107 108 109 110 111 112 113 115 116 117 119 120 123 125 126 128 129 13...

result:

ok good solution

Test #116:

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

input:

BABAAAABBABAABAAAAAAAAABABAAAAAABBAABAABABABABBBBBAABBAAABBABBBAABABBABAAAABAAABABBAABAABAAAAABABABABAAAABABAAAABBBAAABBABABABABAAABABBBABBBABBAABAAAAABABAAAAABAABBAAAABABAABBBBBBAABAABAABABABAAAAABAABABABBABABBABABABABBAAABABAABAAABBABAABAABAAABBAAABABABABAABAAABABBABAABBAAAABAAAABBAAAAABBAAAABBAAB...

output:

YES
2 3 6 7 8 9 11 12 13 14 18 19 20 21 22 23 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 67 68 69 70 71 72 73 74 75 76 77 78 79 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 110 111 1...

result:

ok good solution

Test #117:

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

input:

BABABBBAAAAAABBBBAABBAABABAAABAAABBBBBABBBABABABBBBABAABBBAABABBAABAAABAABBABBBABABABBBBBBBBBBAAAAABABABABBAAAABBBBBBBBBBABBABBABAABBBAABAAABABABAABAAAABAAABAAAABAABAABBBBBAABAABBABABBABBBAAABBBAABBAABBBBBABAABABBBABBAAAAABAAAABBBBABBABABABAABBAABBBBABBAAABAABAABBBAABBBBAABBABBABBBABABBBAAAAAAAAABBB...

output:

YES
1 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 35 36 37 38 39 40 41 42 44 45 46 47 49 50 51 52 53 54 55 57 58 59 60 62 63 64 66 67 70 72 73 75 76 78 79 81 83 84 86 87 88 89 90 91 92 93 94 97 98 99 100 101 102 104 106 107 109 110 111 114 115 116 117 118 119 120...

result:

ok good solution

Test #118:

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

input:

BBBBABBBAAAABABBBBBBBBABABAABBBBBAAABBAABABBBABAAABBBABAAABABABBABBAAABAABAAABAABABBAAABAAAABBBBABBBBAAAAABABAAABBBABAAABBBBAAAABBBAAABBABABABBBABBBBAAAAABABBAAAABAABAAAABABABBBBABAABABABABBBBBBBBAAABBBBBBABBBBBAABBAAABAAAABAAABAAAABAAABABBBAAABBBABABBAAAAAABABAAABABABABABAABBAAAAABBBAAABBBBBBBBABBB...

output:

YES
4 6 8 13 15 23 25 27 29 34 37 38 41 42 45 47 51 53 54 55 59 60 62 64 65 67 71 74 78 81 82 85 88 92 96 98 101 106 108 110 113 116 117 120 125 128 130 131 135 136 138 139 141 143 144 145 146 147 148 149 154 155 156 157 158 162 163 165 166 169 170 171 172 173 174 179 180 183 184 186 188 196 197 198...

result:

ok good solution

Test #119:

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

input:

ABBAAAAABBABAABBABBBAABBAAAABAABABBAABBBAABBABBBBABABABABAABBBBBBAAABBABAAABAAAAAABABAAABBAABBBBABAAABBAAAABBBBAABBBBABAAABABAABABBBAAABABBBAAAAAABABABAAAAABBBBAABBBBBBBBBABAAABABABAABBBBABABAABBBBBBBAAAABBBAAAABBAABBAABABBBABABBBBAABBABBABABBBAABABAABBBABABAAAAAABAABABABAABBBABAAABABABBAAAABAAABABB...

output:

YES
1 3 8 10 12 14 17 20 23 25 28 30 32 33 35 38 40 43 45 49 51 53 54 56 57 59 66 69 70 71 72 76 82 84 86 89 91 93 97 98 101 104 108 112 113 118 119 123 124 125 128 129 133 135 137 141 147 148 150 151 156 160 163 172 174 176 178 180 182 184 188 189 191 194 200 205 208 212 213 215 217 219 220 222 224...

result:

ok good solution

Test #120:

score: 0
Accepted
time: 8ms
memory: 6048kb

input:

ABBBAABBBAABBBAABBBBBBABAAAABBABBAABBABBBBABAAAABAAAABAABBABAAABBBBAABABAAAAAAABABBABAAAABABAAAAAABABABABBAAABABBAABABABAAAAAABAAABBBBBBBAABABBBAABAABBABAABABBABAAABABBABABABABAABAAAABBBBAAABAABBBAAABBBBBABAABBBBBBABAAAABAAAABBBBAABAABABBABABAAABBBABAABBAABABAABABBBBAABBBBABBBAAABAAABABBABABBABAAAAA...

output:

YES
1 2 3 4 6 7 8 9 10 11 12 13 14 16 21 22 24 25 26 27 28 30 32 33 34 35 36 37 38 40 41 42 43 44 46 47 48 49 50 51 52 53 54 56 57 58 59 60 62 63 65 66 67 68 69 70 71 72 76 77 78 79 80 82 83 84 85 86 87 88 89 90 91 92 96 97 98 99 100 101 102 103 105 106 108 109 110 111 112 113 115 117 118 119 120 12...

result:

ok good solution

Test #121:

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

input:

AABAAABBABBABBAABBBBAABBBBAAAABBABBAABBBBAAABAABAABBAABABABABAABABAABAABABBBAABAAAABAAABAABAAAAAABBAABBABAAAABBAAABABBAABABABBBBBBABBAAAAAABAABBBBBAABBBAAAABBABBBABAABBBBAABABABBABABAAAAABABBAABBBBBABABBBBAABAAABBABAABBBBBABBBAAABBAAAAABBABBABABBABBAABBBAAAAABABBABAABAABAAAABBAABBAABBABBBAABAAABBBBB...

output:

NO

result:

ok no solution

Test #122:

score: 0
Accepted
time: 6ms
memory: 5780kb

input:

BAAABBABABBBABABBAABBAABBABBBBBAAAAAABBAAABABAAABBAABBBABABBBAAAABBABBBAAABAAABAABABBABBAABBBABBAAAAAABBAABAABBAABBBBABABBBABBBBAABBAABBAAAABBBBBBABABBABBAABAAAABBBABAABBBBAAABABABAABBBABABABBABBBABAAABBBBAABAABABABAABBBBABABBABABAAABBBBAABBBAAAABBAAABABBBABBBAABABBBAAAABBABBAAABBABABABAAABBAABBBBAB...

output:

YES
1 4 7 8 10 11 12 13 15 18 19 20 21 23 26 27 28 29 30 31 37 40 41 42 44 45 47 48 49 50 51 52 55 57 58 60 61 65 67 68 71 73 74 75 77 78 80 81 83 86 88 89 90 92 93 94 95 96 99 100 101 102 105 106 108 109 110 111 112 113 115 116 117 119 120 123 125 126 127 128 130 131 132 134 135 136 140 147 149 152...

result:

ok good solution

Test #123:

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

input:

ABAABBBABBBAAAABBABABBBBAAAAABBABBAABBAABAAABBABAABBAAABBBAABABBABBABBBABBBBBAAAAABABAABBABAABAAABBABAABAAABABAABBBABABAABBAABBABBAAABBBABABBAAABAABBABAABAAAABABAABAAABABBAABAAAABBBABBBABBAAABAABBABBABBBBBBAABBBBBAABBBBBABBBAAABABBBBAAABBABABABABBBAABAABBBABABAABBBBAABAABABBBBAABBBBBBBBBABBABBABBABB...

output:

NO

result:

ok no solution

Test #124:

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

input:

AAAAAAABAABABAABABABAABAABAAAAABBABABAAAABBBBBBBBABABABBBBABBBBAAABBABBABABBBBBAABABBABAAAAAAAABAABBAABBAABABAAABABBABBBAABBAAABABAAAABBAAABABBBBBABBAABBBBABABBBBABBBBAAAAABBAAAAABABABBBAAABABABABBABBAAAABBABBAAAABBBAAABBABABABAABAAABABABAABBABABBBBBBABBABBAABBAABBBBBABABBAABABBABBBBABBBBBABAABBBAAA...

output:

NO

result:

ok no solution

Test #125:

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

input:

ABABBBABBBBBABBBBBBABBABBBBBAABAABABBAAABABBABAABBABABABABBBBBABABBAABBBBABBBABABAAABBAABABBABABBABBAAAABBABBBBABBBBBABABABAAAABBABBABBBBAAAABBABABBAABBAABBAABAAABBAABBBBBBABAABABABBAAAABBABAABBAAABAABBBAABAAAAAAAABBABABABBBAABAAAAABAAABABBBBBAABABBABBBBABABBABBBABBABAAABABBABABAAABAABAAAABAABAAAAAB...

output:

NO

result:

ok no solution

Test #126:

score: 0
Accepted
time: 4ms
memory: 5116kb

input:

AABABBABAAABBBBABAABAABAAAABABAAABAAABABBBABABBABABAAAABBABAAABBAAAAAABBAAAAAABABBABAABABAABAABBABBAAABAAAABAABAABBABAABAABBABAAAAAAAABAABAAAAAAABAABAAABBBABABBBBABBABBAABABAABAAABAABBBBAAABAAABAAAAAABAAAAAAABAABBBABAABAABABAABAAAABABBABAAABBABBBABAABBAABBABABAAAAAAAAAABBAABBBABBBABBBAAAABABAAAAABAB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64 66 67 68 69 70 71 72 75 76 77 78 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 1...

result:

ok good solution

Test #127:

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

input:

BBAAABBABABABBBBBBBBABBBAABABBBBBABBABBBBBABABBBAABBAAAAAAAABABABBAAABBBABBBBBBBABBBABABBABBBABBBBBAABBAABBAAAABBAAABABBAABBBABAAABBAAABABAAAAAAAAAABAAABBAABBAABBABBAABABABBBAAAABBABAAABAABBBBBABBAAAABABBAABBBABABAAABAABAAAABBBAAAAABABAABAABBAABABBAAAAABBABBBBAABAABBBAABAAAABBBABABBBBABABBBAABABBAAA...

output:

NO

result:

ok no solution

Test #128:

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

input:

ABABBBABBBBABBBBBABABBAABAAABBAAAABABAAABBAAAABAAABABBBAAABBABAAABBABAAABABABBBBBABBABBABBABABABBBBBBABBABBBAAAAABBBAAAABAAAABAABABABAAAAABBABBAABBABBAABAABBBAAAAAAABAABBBBAABABBAABAAABBAABAAABABBABABABABABABAAAABABAAABBBBAAAAABAAABBABBABBABABAAABAAAAAAAAAAAABABABBBBAAAAABBBBABBBABAAAAAAABBABABBAABB...

output:

NO

result:

ok no solution

Test #129:

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

input:

BBBAAABABABAAABBBAAAABABBAAABABAAAAABABBAABAABABBBAAABAAAAABBAAAABBAAABBBABBBAABAABABABABBBBAAAABBAABAAABBBBBBABABAABBAABABBAABBABBBABBBAAABBABAAAAABBAABBABABABABAAABAABAAABBBBBABBABABBABBABBAABAABBBABBAAAABAABBAAABAAABBBABBBABABABAAABAAABBBABAABBBAABAAAABAAABBAAABAAAAABBBABABABAABABBAABBAAAABBABAAA...

output:

NO

result:

ok no solution

Test #130:

score: 0
Accepted
time: 4ms
memory: 5156kb

input:

BAABBBAAAABBAABBBABBABAAABABBABBBBABABAAAAABAABBABABBBAAAABABBBBAAABBABBAABAAABBAAABABBBAAABBBBBBAABBABAABABABAAAABAABBBBAABABAAAAAAABAAAABBAAAAABABABBABBBBAAABBAABBBBBBABABABABAAAABBAAABAABABBBBBBABBBAABAAAABABBAABBBAABAABABAABABBAABAAAABBAAAABBAABABBABAABABABBABABBBBBAABBBBBAABBBAABABBABBBAABAABAB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 ...

result:

ok good solution

Test #131:

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

input:

BBBBBAABBABABBAAAAAAABABAABAABABBBBBBBBAAABBABAABBBBBBAAAAAABAABBBAABBBABAAABABBBAABABBBBAAAAABABBAAABBBBBBBAABAAABBBAABAABBBBAABBBBBBAABBBABABBAAAAAAABABBBBBAAABBBABAAAABAABABBABABABABBBBBBBAAAAAAAAABAABBBAABBABABBAAABBBBBAABBAAAAABBAABABAABBBAAABAABAABABAAAAAABBAAABAABBABBAAAABBABAAAAAABBBAABABABA...

output:

YES
2 3 4 5 7 8 9 10 11 12 13 14 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 97 98 100 101 102 103 104 105 106 107 108 109 11...

result:

ok good solution

Test #132:

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

input:

AAABABBBBAABABBABAAABBABBBBABBABBBBABABBAABBBBBAAAABBBBABABABBABBAAABBBBBAAABBBABBAAAABBBBABBABAAAAABAAABBAABABABBBABABBAABBBBBAAABABBBBABABAAAAAAAAABBBBBBBBAABABBABBBAAAABBBBABBBAAABABBABAABBBABAAAAAAAAAAABBABBBABAABBABBABBABBBBBABBBAAABAAAAABBBAAABAABABBAAABAAAAAAABABBABBABAABBABABBBABBBABBBABABBB...

output:

YES
3 4 5 9 12 13 16 17 20 23 27 29 31 35 36 37 39 40 42 47 52 54 55 56 57 59 60 63 65 68 72 73 75 76 78 79 81 82 84 85 86 91 92 93 95 100 101 103 104 106 108 110 111 112 115 116 118 120 122 125 126 127 130 132 134 135 136 138 140 145 146 147 148 149 156 157 160 162 163 164 166 167 169 170 171 174 1...

result:

ok good solution

Test #133:

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

input:

BABBABABAAABAAAABBABABBBBBABBBBABBBABBBBBBAABBBAAAABABAABBAABBBBABABABBBBBAABABBAAAAAABAABBBBBAAAAABABBBAAAABABBBBABBBBABAAAABBAAAAABAABABBAABAABAABBBBABAAAABBAAAABAAABAABBBABAABBBAABAAAAABBBBAABBBABBBBABBBABABAAABAABABABBABAAAAAAAAAABAAAABAAABBBBAAABBABBBBAAABABBBBABBABBBAABBABBABAAABABBBBABBAAAAAB...

output:

NO

result:

ok no solution

Test #134:

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

input:

BBBAABAAAABBBABBBBABAABBABBBABBBBBBABAABBBBBAAABBAAABAABABABAAAAABABBBBBAABBBABABBAABABAABBBBAABBABABBABBBBAABBABABABBAABABBABAABBABAAABBBABBAAABBAAABABAAAABABBBBBBBABAAAABABBAABBABAAAABBBAAABBAABABAABBABABABABBBABBABBBABBBABAAABABAAABBAAABABAABAABBBBBBBABAABABBBAABABBBAAABAAAABABBAAAAABBABABBBBABBA...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 22 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 106 107 108 1...

result:

ok good solution

Test #135:

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

input:

BBABABBAABBAAAABABBBABBBABAABAAABABBAAAABBBABAAABBAABBBBBBAABABAABAAABBBBBABABBAABBBBAABAAABBBAABBBBAABBBABAABAAAABBBAABBBAABBAAABABBBBBAABBAABBBAAABABAAABAAAABBAABBBBAABAABBABABAABAABBAAABABABAABBBABAAABAAAABAABABBBABAAAAAABABAAABABBBAABABBBBABBBABABBABABBAABBAABBBABABAAAAABBBBBABABABBBBBBABBBBABBB...

output:

NO

result:

ok no solution

Test #136:

score: 0
Accepted
time: 4ms
memory: 5200kb

input:

BAABBBBABABAAAAAAAABBAAABBBABAAAABBAAAABAAABBBABBBBABABABABAABAAAAABBBABBAAAABABABABBBABABBABBABABBABABAAAAABBAABABAAAAABAABABABBBBABBABBBABBAAABAAAAAABBABAAABBBBBBBBBBABAAAAAAABABAABBABAAAABAABAABBBABBBABABAABABABAABBAAABBAABABAABBAABAAAAABBBBAAABBABABABBABBAABABBBABBBBABBABBBBABABBAAAAAABABBBBAABA...

output:

YES
1 4 7 9 11 19 22 24 28 29 34 36 39 41 44 47 52 54 55 57 59 62 68 71 74 77 79 81 82 84 87 89 92 94 96 98 99 101 102 104 109 110 112 113 115 120 122 123 124 125 127 132 135 138 140 141 145 151 153 154 155 159 168 169 171 177 179 181 183 185 187 191 194 197 199 201 203 204 205 206 207 209 211 213 2...

result:

ok good solution

Test #137:

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

input:

BBAAABABAABAAAAABBABABBABABABBAABABBBBAAABABAAABBBABAAAABBBBBBBBAAAABABBABAAAABAABABAAAABBBAABABBAAAABBAABBAAAAAABAABAAAAAAAABAAAAABAAABABAAABBABABBBBBBBAAABBBAABBBBBBABAABAAABBBAABAABBAAAAAABAAABBABBBABAAABBBABAAABBAABBAAAAABBBBBAAAAAABAABBAABABBBBBAAAABAAAAABBAAAAAAAABBBBAAABABAAABAABBBBBAABAAABAB...

output:

NO

result:

ok no solution

Test #138:

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

input:

BBBAAABBBBBBBABBAAABABABBBBAAABABABAAABBABAABBBBAAABBABBABBBBBBABABAAAAABBABBABBBBBAAAAAAABAABBBBBBABBBABBBAAABAABABBAAAABBBAABBAABAABBBBBAAABBABBABBAAAABBBBABBBAABABBBABBBBABBBAABBBAAAABABBAAABAABBAAAAAAABBABBBAABBBBAAABBABABABBBAAAABBBABABAABAABABAAABBBBAABAABABAABBBABBABBABBABBBAABBAAABABABAABBBA...

output:

YES
3 5 6 11 12 13 15 16 17 18 19 20 22 23 27 31 32 34 35 37 38 40 41 42 44 46 47 48 49 50 51 53 55 56 57 59 60 61 62 63 64 65 66 67 72 75 76 77 79 80 81 82 83 86 87 88 89 90 92 93 98 99 101 102 103 104 106 107 108 109 110 112 113 115 117 121 123 124 126 127 128 131 132 133 136 137 138 140 141 142 1...

result:

ok good solution

Test #139:

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

input:

BBBABAAABBABBBAABBAAABBABABBAABABBABBABBABBABBAABAABBAAAAABBABBAABAAAABAAABBAAABAAABAABBABBABBABBAABBAABABABAAAAABAAAAABBBABBABAABABAAAAAABAAAABAABAABBAAABBAABABBAABABBBABAABBBBAABAAAABBBBAABBABABABBBABBBAAABBAABAAABBBABBBABBBBAABAABBAABAABAABBAAABABBBBAABBBABBAABAABBBAAABABBAABAABABAABBAAABABABBBAB...

output:

YES
3 4 6 9 10 11 14 16 18 22 24 25 26 28 30 32 34 36 38 40 41 43 44 47 48 49 51 54 57 58 61 62 63 65 66 69 70 71 73 74 76 80 83 85 86 89 91 93 94 96 97 99 100 101 103 105 106 107 108 113 114 115 116 117 118 119 123 125 127 130 132 138 139 143 145 146 147 148 149 151 153 154 156 158 160 162 165 166 ...

result:

ok good solution

Test #140:

score: 0
Accepted
time: 6ms
memory: 5632kb

input:

AAABABAABBBAABBBABAAABBBAAAABAAAABAABBABBAABBAAAAABBABABAABBBABABBAABAAABAABBBAABBBBAABBBABBAAABAABABABBABABBABABBAABABBABBBBAAABBABBBAAAABAAAABABABAAABAABAABABAABBBAAAABBAAAABAAABABAABAABAAAAABABBBAAAAABABABBAABAABBBAABAABABAABAABAAAAAAAABAABABBBABBBBBABABABABABBBBABBABBBABBAAAABBABABAAABAABBBBBAAA...

output:

YES
3 5 7 8 10 11 13 15 16 18 20 21 23 24 27 28 29 32 33 34 36 38 39 41 43 45 49 50 53 54 55 56 58 60 61 62 64 66 67 68 69 72 74 75 76 77 78 80 82 83 84 86 89 90 91 92 94 95 97 98 99 100 101 102 103 104 106 108 109 110 111 113 114 116 118 120 121 122 123 124 125 128 131 134 138 139 144 145 147 149 1...

result:

ok good solution

Test #141:

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

input:

BAABABABBBABBABBAABBBBBBBAABBAAAABBAABAABABBAABAAAABBABAABBBBAABAAABBBBABABAABABAAABABABAAAAABBAAABBABAAABAABBAABBAAABABABAABAAABABBBBBBBBBABABBABBAAABABBAAAAABBABBBBAAABBBBBBBAABBBBBABABBBBABBBABBAAABBABBBABBBAAAABABBBABAABAABAABAABAABAABAABAABBAAAABBBABAABBAAABABAAABBBBABBBBBAAAABBBAAAABBABABAABAB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102...

result:

ok good solution

Test #142:

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

input:

BBABBBAABBABAABABABABBABABAABBABBABAABBAAAAABAABABAABBBBABBBAAABBABABABBBAAAABAABBABBBBABAAABAABBABABAABAABBABAAABBBABBBAAAAAABBABAAABBBBAAABABBBAAAABBBAABAAAAABBBAABBABBBAABABAAAABBBAABBBBBABBBAABBABAAAABABBABBBBBABABABABABBBAAAAAABAAABABABABAABAAABABBABABAABBABAABAABAAABABAABBBABBBAAABABAAAAABAABA...

output:

NO

result:

ok no solution

Test #143:

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

input:

BABBBBBAAAAAABBBBAABABAABBABBAAAABAAAAAAABBABABAABABBBABBBABBBABAABBABBABABAAABAAABBBBABBBAABAAAAAABBAAAABBBAAABAABAABBAAAAAABABBAAAAAAAAABBBBBBBBBABBBAABBAAAAABABBABAAAABBBBBBBABBBAABBABBBAAAAABBAABBBAAABBAABAABBBAABBBAABABAABABABABAAAAABABBBBBABBAAAAABABAABBBBBBBABABAABABAAABAABBABAAAABBBAAAAAABBB...

output:

YES
1 2 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 28 29 30 31 32 33 34 37 38 39 40 41 44 45 46 48 49 51 52 53 54 56 57 58 59 60 61 62 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 81 82 84 85 86 87 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 113 114 115 116...

result:

ok good solution

Test #144:

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

input:

BABAABABAAAAAAABBBBAABAAAAABABBABBBAABABBBBBBABBBAAAABBBBBABABABABAAAABBAAAABABBBBABBAABABBAABAABABBAAABAAAABBBBAABBAAABABABBAAABBABABBAAAAAAABABBABBABABBBBBBABABAABAAABABABABAABAAABBBAABBBBBBBABBAABABBAAAABBABAAAABBABAABABAABAABBBBBABAAABAABBABAABBABAAABAABABAAABBAAAAABAAABBABABBABABBABABBBBABBBBBB...

output:

NO

result:

ok no solution

Test #145:

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

input:

ABBAABBBABABBBAAABBBABBABABAABAAAABABBAAAAABBAABAABBBABABBAABAAABABAAABBBAAAAAABBBBABBBAAABABBBBAABABABBBBABBBBBABBBAAABBBBBBAABABBBAABBABABBAAAAABBBAAAAAABAABAABBABBBBABAABABAAABABABAABBBBBAABBBBBAAABAABBBAABAAAAABBBBBBBBBBAAABBAABABAABAAABAABAAAABBBAAAAAABBAABBABAABBAABBBAABBBAAAAAAABBBBABBBBBBABB...

output:

YES
2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 45 47 48 49 50 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 1...

result:

ok good solution

Test #146:

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

input:

ABAAAABAABBBBBBAAAAAAAABAAABAAABBAAAAAAAAAABABBBABBBAAAAABBBBAAAAABBAAABBBABAAAAAAABBAABBBABBBBABBABAABBABABABBABBAABBABBABABABAABABBABABBBBBABBBBABABAAABBBBABAABABBBBABBAABBAAAABAAABBBABAAABAABABBAAABBBAAABAABAAABAAABAAAABBAABABABAABBBABAABABBAAAABBABBBAABBAAAAABBAAABABABBAAAABABBBBAABABAAAAABABAAB...

output:

YES
1 3 7 9 12 13 14 15 20 21 22 23 24 27 28 30 31 33 38 39 40 41 42 43 45 46 47 48 49 51 52 54 55 56 57 60 61 65 66 68 71 74 75 76 82 83 86 87 90 91 96 98 100 102 103 104 106 107 108 110 111 113 114 116 118 119 121 123 124 125 127 129 131 134 135 136 141 143 144 145 146 147 148 149 150 152 153 156 ...

result:

ok good solution

Test #147:

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

input:

AAABBBBABBAAAABBAAABBABBAABAAAABAAABBBBBAABABBBBBABBABAAABBBBABBABAAAABAAAABAAABAABAAAAAAABAAAAAAABAABBAABABBABBABABAAAABABAAAAABAAAAAAABAABBBBAAABAABABABAABAABBABBABBBABABABBABABBAABBBAABAABBBABABBABBAAABABBABBBABBAAAABAAAABABBBAAABAABBBABBBABBAABAAAAAABABBBABABAAABABAAAABAABBAAAABBAAABBAABBABBBABA...

output:

YES
2 3 8 9 10 14 15 16 19 20 21 22 24 27 30 31 32 34 35 38 39 40 42 44 49 51 52 54 56 57 60 61 63 64 65 66 70 71 74 75 76 78 79 80 81 82 83 91 95 96 97 98 99 101 104 105 107 110 112 113 114 115 116 121 123 128 129 133 134 135 136 138 139 143 144 145 146 148 149 151 152 154 156 158 159 161 162 164 1...

result:

ok good solution

Test #148:

score: 0
Accepted
time: 6ms
memory: 5596kb

input:

BBBBBAAAABBABBBAABBBAAABBAAABBBAABAAAABBBAAABABBAAAAAAABBBAABBBAABBBBBBABABAABBBABABABAABBABAABBBAABABBBAABAAAAAABBAABABBAABBBABBBBBABBAAABABBBAABBAAABBABBAABBAABBABBAAAABBBBBBBABBBABAAAAAABBBBAABBAABAABBAAABAABAAABABABAABBBABBABABBAABABBBAABAABABBABBBAAABAABABBBABAAAAABBBBBAAABBBABAABAAAABABABBBBBA...

output:

YES
4 5 8 9 11 12 15 18 19 20 23 25 27 28 30 31 34 35 36 37 38 40 41 44 46 47 48 50 51 52 53 54 55 58 60 63 65 71 73 75 76 77 81 82 83 84 86 88 90 92 93 94 97 99 100 101 104 107 113 116 117 119 120 121 123 126 127 131 132 134 135 139 140 143 145 147 149 150 153 155 157 159 161 162 163 165 166 169 17...

result:

ok good solution

Test #149:

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

input:

ABAAAABBBAABBAAAAABBABABAABBBAAAAABBAABBABBAABAAAABABAABBBBBBABABAABABABBABBBAABBABAABBAABBBAABBABBAAABBAABAABABABBAAABAABABBBBBBAAAAABAAAAAABABAAABABABBBABBBBAABABBBBBABABABABABABBBBABBBBBBAAABAABAAAAABBBBAAABBBBABBABBABBAAABABAABBBAAAAABBBBBBBBBAABAABABBABBAAABBBAAAABABBBBBABBBBAABABABAAABBBABABAB...

output:

NO

result:

ok no solution

Test #150:

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

input:

ABABBABAAAAABABBBAAAAABBAAAABAABBBBABBAAAABBBAABBABBAABBAAAAAABBAABBAAAABABABBBBAAAABABABABBABBBBABBBAAABABBAAABABABBBABBBBBBBABBBBAAABBABAABAAABAABBABBBBABBBBABBBBAABBBBAAABBAAAAAABABABAAAAAAABBBBABAAABABBAABBAAABABAABAABBAABBAAAAAABBBABAAABBABAAAABBBBBBBBBAABBABBABABBAAABABAABABAABBBBBBBBBABAAAAAA...

output:

NO

result:

ok no solution

Test #151:

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

input:

BAABAABAABBBAABABBAAAAAABAABBBBBAABAABAABABABABBBBABABBBBABAABABABAABAAAAABBBAAAAABBABBABBBBAAABBBBABABAAAABAAAABBBABAABAABAAABABBABBBBABABAAAABAAAAAAABAAABBBABBBBBBABBAAAAAAAABAAABAABBABABBABBAABAABBABAAAABABBBBABAAABBAAABABBAABBAABAABBABBABAABBBABBABABABAAAABBABABBABAAAABBABAABABBBBAABABABAAAABAAA...

output:

NO

result:

ok no solution

Test #152:

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

input:

BABBABBABABAABBABABBBABABAABBABBABAABBBABBBBBBBBBABBABBAAAABAAAAAABABBABBBBAABBBAABAAAAABBBABBAAABAABAAAABBABBBBABBABAAABAAAAAAAAABBABAAABBBBABBBAAAABAABBBAAAABBAABABBABAABAAABBAAABBBAABBAABABBABBABBABBBAAABABABAAAABBBAABBBAAABBBABBBBABBABAAAABBAAABBBBBBAAABABBBABBAABBBAAABBAABABABBBABBBBAABBBABABBB...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 43 44 45 46 47 48 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 77 78 79 80 81 82 83 85 86 87 88 89 90 91 92 94 95 96 97 98 100 101 102 103 104 105 106 107 108 110 1...

result:

ok good solution

Test #153:

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

input:

AAABBABAABAABBAABAABABAABBBABAAABBAABAAABBBBBBABBBBBABABBBABABBAAAAAAAAABBBBAABAAABBBBBBBBBAAABAAAABAABBBBAAAAABBBAABAAABBBAAABBBBBABBAABAAAAAAABBAABAABAABAAABAAABBABABAABBBBAABAABBBAABAABABBAABAABAAABBBBABBBBBBABAAAAAAABBABBBAABABBAAAAAAABBBBBBABABAABAABBAABAAABBABBABABBABABABAAAAABAABABBAABAABBAAA...

output:

YES
3 6 8 9 10 12 14 17 19 21 23 25 28 29 32 35 36 37 41 47 53 54 56 59 60 62 63 73 76 78 79 83 92 94 96 99 100 103 106 108 109 110 111 114 117 121 122 123 125 126 132 135 136 137 144 145 146 148 150 151 152 153 154 155 159 161 162 164 166 168 169 170 174 175 176 177 179 182 185 186 187 189 192 193 ...

result:

ok good solution

Test #154:

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

input:

AAABAAAABABBBABBBABBAAABBABAABBAAABBAAABBABAABBBABBBBBBBBAAABBBAABBBABABAABABAAABBBAAAAABBABAAABBABBBABAAABAAABABBABABBBAAABABAABABAAABABAAAABBAABBABAABBBAABBAABBBBAAABABABAABBBAABBBBAABBBBBABBABBAABBABABAABAABABBBBAAABBAABBABAAAAABBAABAABBBAABAABABAAABBABBABAAAABABABABBABBBBBABBBAABABAAABAABABBBAAB...

output:

YES
3 4 8 10 14 17 19 21 24 26 27 29 31 34 36 39 42 43 46 48 49 57 61 63 66 68 70 71 73 75 76 77 80 84 88 90 91 92 96 98 102 104 107 111 112 114 115 116 118 121 123 124 125 126 128 129 131 134 135 136 137 141 144 145 147 148 149 152 155 156 159 161 164 166 167 168 169 171 172 174 176 177 179 182 183...

result:

ok good solution

Test #155:

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

input:

ABBBABABAAABBAABABBAAABAAAAABABBBBBABAAABBBBBBABAABAAAAABBABAAAABBBBBBABBBAAABABBAAAABAABBABBABABBAAABAAAAAABBBBAAABBBABBBAABABABBABAAABBAAAABBABAABBAAABABBBABAABAAAAAABBABBBABBABBAAABABABAAABBAAAAAABBABABAABBAAAABAABAABABBAAAABBBABBBABAABBBBBBBBBBABABBBBABBBABABABBBBBABBBBABBAAAAAABBABBBBBBAABBAABB...

output:

YES
2 4 6 8 11 14 15 17 20 22 24 28 30 35 37 41 47 48 51 56 58 60 64 71 74 78 80 82 85 86 89 91 93 94 96 98 101 103 108 112 116 118 119 122 124 125 126 128 130 131 133 136 138 142 144 146 148 149 152 154 158 159 162 168 171 174 175 177 178 180 184 186 187 189 192 194 199 201 203 205 208 210 214 217 ...

result:

ok good solution

Test #156:

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

input:

AABAABBAAAABBBABBABBBAABBBBBAABBBBAAABAABABBAABBBBBAAAABBAAAABBABBAABBABABBBBBABABBABBABABBBBBBBABBAABBBBABBAABABAABAABAABAAAAABBBBAAAAAAAAABAAAAAAAABBAAAAAABAABBAABBBAABAABBBABBBBABBABABAABBAAABABAABBAABBAAABAABBABBABAAABBBBAABBBBBBAABABAAAAABABABAABBAABBAABABAABABABBBBBABAAAAABAABBABBBBAABAABAABAA...

output:

NO

result:

ok no solution

Test #157:

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

input:

ABABAAABABAABBBABBABBAABBABBAABABAABABAABAABBBAAAAABBABAAAABAAAABBAABBABBBAABBAAAABAABBABBABAAAAABBBBBBABABAAAABBABABAAABAABABABBAABBAAAABBAAABABBAAABAABAABAABBBAABBBABBABBBABBBBABBAAABBBABAABABBABBAABBBBBAABBBAAAAABBBBBBBBAAABBBBAAAAABBAABAAABAAAABBBBBBBBBAAABBBBBABBABBABBABBAABAAABAABBABBBBABBABBA...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 100 101 102 10...

result:

ok good solution

Test #158:

score: 0
Accepted
time: 4ms
memory: 5144kb

input:

ABABAAAABBABABAAAABBBABAABAABBAABBAAABBABBAABBAAABBBAAAAAABBBABAAAABABABAAABBABBBABAABBBBBABBBBBBABABBBAABBABAAABABBABAAAABABBAABAAAABBABBBBBABBBBABAABAABBABBAAABBBBABBBABAABBABBBBBBBBABABABBABBABBBABBABAAAABABABBBBABBBAABAABBBAABABABABAAAAABABAABBBABABABBBAAAABBAAAAABBABBBBABBABBBBBBBBBABAABABBBBAA...

output:

YES
1 3 4 9 11 12 14 18 21 22 24 26 28 30 32 35 37 40 42 44 46 49 53 58 61 62 64 67 68 69 70 72 76 78 82 83 86 90 91 97 99 101 103 106 107 109 113 114 117 118 123 124 126 128 130 133 135 137 141 143 147 148 150 151 153 155 156 158 162 165 167 169 171 174 175 177 184 185 186 187 189 191 192 194 196 1...

result:

ok good solution

Test #159:

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

input:

AAAABABBBBAABABAAAABAABBBBABBBABBABABABABBBABBBABBABBAAABBBAABBBABAAABABABBAAAAAAAABAAABBBBAAAAAAAABABAAAABAABBABAAABBAAABABAABBBABBBBABABBBABABAABBBBBBBBAAABBAAABBAABABBAABAAABBABBABAABAABBAAABBBBAABABBBBABBAAAAABAABABBBBBAAAABABBABBAABAABBBAAAABBBABBAAAABBBAABBBBBABBBAAAAABAAAAABAABAABBBAAAABBABAB...

output:

YES
4 6 11 12 13 14 15 19 21 22 26 27 29 30 31 33 35 37 38 39 40 42 43 44 46 47 48 50 52 53 57 58 59 61 64 65 66 69 71 72 73 75 78 79 80 81 82 83 84 87 90 91 94 95 96 97 98 99 101 102 104 105 106 107 109 111 112 113 115 116 117 118 120 121 122 124 125 126 129 131 132 133 134 136 137 139 140 141 142 ...

result:

ok good solution

Test #160:

score: 0
Accepted
time: 4ms
memory: 5020kb

input:

BBAAABBBABBBBAAAABAAABBBABBABABBABBABAABAABBAABAABBBBBBBBAAABABAABABAABAABBBBBAAABBBAABBABBABABBAABAABAAABBABAAAABABAABABAABAAAABAAABBABBBABBBABBBBABBBBAAAAAAAABAABABAABBABBAAABBBBBABBBABABAAABBAAAAABBABAABABBBAAAABAABAAAABAABAABBAAAAABBBBBABABABBAAAAAAABAAABAAAAABBABAAAAAAABBBAABBAAAABAAAAAABAABABA...

output:

YES
1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 59 60 61 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 103 104 105 1...

result:

ok good solution

Test #161:

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

input:

ABBBAAAABBAAAAABBBABBBBBABBBBAABBABABAAAABAABBBBBBABABAABBBBBBBAABAAABAAAABBABABABBBABBBABBABABABABABABAAAABBAABABBABBBAAAABBAAAABBAAAAAAABBAAAAABBBBABBBABBABBBBBAABAAAAAABABBABABBAABAABAABABABAABAABABABABBBBBBAABAAAABABBABABBABABBAAAABABAAAABABBBAABAAABBABAAABAABABABBABBBBAAABBBABAABABBAAABABBAABAB...

output:

NO

result:

ok no solution

Test #162:

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

input:

AABAABBABABBBAABBABAABABBBBBBAABABBABBBBBBBAABBBAAAABBAABABAABABAAAABBBAABABABABBBBBBBBAAAAABBAAABBBBBAABBBAAAABABBAABAAAAAABABBAABABBBBBBBAABAAABAABBABBBAABABBABBAABBBAAABAAAAAABAAAAAAAABAABABABBBBABAABAAABAABBAABABBAABBBBBABAAABBBBBAAABBBABBABBAABBAABBBBBAAABABAABBBAABABBABAAAABBBBBAABABAABABAABBA...

output:

NO

result:

ok no solution

Test #163:

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

input:

ABBAABABAAABBAAAABABAAABAAAAAAABAABABAAAAAABABBAAAABAABAABAAAABBBBAAAABBAAABABBABBBABBBABABBAABAABBAAAABBBAAAAABAABAAAABBBAABBABBABBBBBBAABBABABABAAAABABBBBBAABBBBBBBAAAAAABABBBBBBBBABBABBAABBBBBBAABABBBBBBBBBBABABBBBAABBBABABABBBBBBBABBABBABBBAAABAAABAAAABAAABAABBBAABABABABBBBAABABBBABAABABAAAABABA...

output:

YES
1 4 5 6 7 9 12 14 16 17 19 21 22 23 24 28 29 30 31 32 34 36 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 61 62 64 65 66 68 69 70 71 72 75 77 79 81 82 83 85 86 87 89 90 91 92 94 95 97 98 99 102 103 105 106 109 110 111 112 113 114 115 118 119 122 123 124 126 127 128 129 130 133 134 ...

result:

ok good solution

Test #164:

score: 0
Accepted
time: 6ms
memory: 5768kb

input:

BBAABABAAAAABBAAAABABAAAAAAAABAAABBABAABBBABBABABBBABABBABBAABBBABBABBBBBABABBAAABAABABBAABAAABBBABBAABAAABABBBABBBBAABBAABBBBBABBBBABBBAABBABABABABAAABBAABABBABAABABBAAABABAAABABBBBAAAAAABABAABBBBABBABAAABBAABBABAAAAABABBABBBAAABBBABBBAAABBBAABAAABBABAABBABAAABBBBBBBBBABAAABAAAABBAAABAABBBBBAABABAB...

output:

YES
1 2 3 4 6 7 8 9 10 11 12 14 17 18 19 20 21 24 25 26 27 28 29 31 32 33 35 37 39 43 45 46 48 51 53 54 56 57 58 59 61 65 67 68 69 70 71 72 73 74 75 76 77 78 81 82 83 84 85 86 87 88 89 90 91 94 97 99 100 102 103 105 106 107 108 112 113 114 115 116 117 118 120 121 122 124 125 126 127 128 131 132 133 ...

result:

ok good solution

Test #165:

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

input:

AAABBABBABAAAAABABAAAABBAABAAABBBBAAAAAABABBAAABBBBBBBBABBABBABBBAAAAABABAAABAABBBBAABBABABBAABBBBAABBAABBAABBABAAABBBABBAABBABBBABBBBAAABBABBAABAABABABBBBBBBAAABBAAABABABBBBAAABBAAAAABAABBBBAAABABBABAABBBABABABBABAAAABABAABBBABBABBBBAABBABAAAAABABABAABABAABBABBBBAAABABBBBBBAABAAAAAAAABABAABABBBBBAB...

output:

YES
3 5 7 9 11 15 16 17 19 23 24 26 28 31 34 41 42 45 47 55 56 58 60 61 63 65 70 71 72 74 77 79 83 85 87 88 89 91 93 95 99 101 103 105 106 109 111 112 116 118 119 122 124 126 130 134 138 140 142 145 148 150 152 159 161 163 166 167 169 170 175 177 180 184 185 187 191 194 196 199 200 202 205 207 209 2...

result:

ok good solution

Test #166:

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

input:

BBABABABAAAAABABBBBAAABBBAABABBABBBBAAABAAABBAABBAABAABBAABAABBAABABBBAABABBABABABBAAAAAAABBAABBABBAAABAABAABBABBBABBABAABBBABAAABABBBBAAABBBABAAABBBBABBABABBAABBBAAAAABBABBAABBABBBABBABBBBBAAABABAAAABABAABABAAAABBBBAABBAAABABBAABBAABABBBABBBAABAABBBABABBABBBAAABBBBABBBBBAAAABAAABBAABBAAAAAABABBABBA...

output:

YES
2 3 4 5 6 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 34 35 36 38 39 40 42 43 44 45 47 48 49 51 52 53 54 55 56 57 58 59 60 61 63 64 65 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 89 90 92 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 113 114...

result:

ok good solution

Test #167:

score: 0
Accepted
time: 4ms
memory: 5152kb

input:

ABABBBABAABABBBAAABBABBBABBAAABAAAAABABABABBBABAAABBBBABAAABBAAAABBABBABBBBAABBABAABBABBABBBABAAAAAAAABAABABAABABBBABABABBBBAAAAABBABBBABBBAAAAAABABBAAAABBAABBBBABAAABAABAAAABAABABBABBABBBBAAABAABBABBBBABABBABBAABBABABAABABABAAABABABABABABBABABBBBABAAABABAABABBBBBBABABABBAAABAAABAAABABBAABAAAABAABAA...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 29 30 31 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 67 68 69 70 71 73 74 75 77 78 79 80 81 82 83 85 86 87 88 89 91 92 93 94 97 98 99 100 101 102 103 104 105 106 107 108 109 1...

result:

ok good solution

Test #168:

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

input:

BAABAAAABBBBBBBBBABBABAAABAAAAABBABBBBAABABBBABBBBBBBABBABAAABAABBABBAAABBABABBBABABAABBBBBAAAAABABBAABBABBBBBABBBBBBBBBAAAABBABBBBBAABBBAABAABBABBABBBABABBBBABAAAABBBBAAAAAABBAABAABAABABBBAAAAABAABAAAAAAABBAABAAABAABABAABBBBBABBAAABBBAAAABABBBBBAAAABBBAABBABAABAAAAAABBBBBAAAABAAAAAABBABBABBABBBBBBA...

output:

YES
1 3 4 6 7 8 13 14 15 16 17 18 20 21 23 24 25 26 30 31 34 38 41 42 44 45 46 51 52 53 54 56 58 62 64 67 69 70 71 72 73 74 75 76 77 78 79 80 81 83 85 86 89 90 91 92 93 94 95 96 97 98 100 102 105 109 110 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 132 135 136 137 139 140 141 142 ...

result:

ok good solution

Test #169:

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

input:

BAABAAAAABBBBABAAABBABBABAAAABBAABBBBAABABBAABBAABABABAABAABBABABBBBBBABABBBBBABBAAAABBAAAAABABBBBBAAABBABABAABAABAABABAAABABBABABAABBAABBABBAABBBAABBBAABABBBAABBBBBBABBABBBAABBBAAABBBBAAABBBABABBAAAABAAABBBBABBABBBAAAAABABAAABAABABBAAABAABABBBAABAABBAAABBBABABABABABAAAAAAAABBBBABABBBBAAAABAABAABAAA...

output:

YES
1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105...

result:

ok good solution

Test #170:

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

input:

AAABABABBAABBBBBBBAAABBABABAAABABAABAABAAAAABBABBBBABBBAABAABABBAAAAABABABAAABAAAAABBBAABAAAABABABBBAABBAAAAAAAABBABBAABBBBBBBABABAABABBBABAABBAABBBBBBAAAABAAABAAABBAABBBABAAAABBBAABBBABABBBAABBAABBAAABBBABBBAABBAAABBAABAAAAABAABBBAAAAABBAAAAAAABABBBBBBAABBBBABAABBBBAAAABABABBAABBABABBBAABBABABBBAAA...

output:

YES
3 5 7 9 12 18 22 23 25 27 31 32 34 35 36 39 44 46 47 52 55 58 61 63 64 70 72 73 75 78 84 87 88 89 93 94 95 97 100 102 105 113 115 117 119 127 129 131 132 133 135 137 139 142 143 145 152 155 156 160 164 166 168 170 172 177 180 181 184 186 188 191 192 194 196 198 201 204 205 209 210 213 216 218 22...

result:

ok good solution

Test #171:

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

input:

ABAAAABABBABBBABABBABAAAAABAABABBBABBBBAAABBBBAAABBBBABBBAAABABBBAAABABABBBBBBAAAAABAABBAAAABAAAAABBABBBAAAAAABBAABAABABAABBBAABBABBAAABBBABAAABABABBABAABBBAAAABAAAABBBABAABBABBABBABABBAAAABBAABABBBAAABBAABABBBABBBAABABBBABAAABBBABBAABAAABABBBBAABAABABAAABAAABAABAAAABABBABBBBBBABBAABBBAAAAABBAAABBAA...

output:

NO

result:

ok no solution

Test #172:

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

input:

ABBBAABAAAABBBABAAAABBAABABABBABBBBBABABABAABBBAABBAAAABBAAAAAABBABBABBBBABBBBAAABAABBBBBBAABABBBBAAABAAAABAABBAAAAABBAABABABBBAAABBABBABAABBABABBBBBABAABBBBBABBBABABABAABBABBABAAAAABAABABABAAAAABBABBABAABBAABBBABABBAAAAAABABABBBAABBAABAAABABAAAAAAABBBAABABBBAABBBBBBBAABBABAAAAABABBABAAABBAABAAABAAA...

output:

NO

result:

ok no solution

Test #173:

score: 0
Accepted
time: 4ms
memory: 6388kb

input:

ABABBAAABAABBAAAABABBABBAAAABABBBABBABBBBBBABBBAAAAAAAABABBAABBBBABBAABAAAABAABBABBAABABAAABBBBBBAAAABAAAABABABBAABBAAABBBBAABBAAABBAAABABBAAABABAAABBBAAAAABABBABBABAAAABABAABBAAAABBBBABBABABABABBAABABBAAAABABABAAABABBABABAABBBAABBABAABBABBAABBABBABABABABBBBABABAABABBAABABAABBBAABBAABABBBBBAABABBAAB...

output:

YES
1 3 4 5 7 8 9 10 11 12 13 16 17 18 19 20 21 22 23 24 26 27 28 29 30 32 33 34 35 36 37 40 41 42 43 44 46 47 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 ...

result:

ok good solution

Test #174:

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

input:

BBABAABABBBBAAAAAABBABBABBAABBBAABABABBBBAAAAABBBAAAAABABABAABBBAABBABBBABBBBBAAAABBBAAAABABABBBBBABAABABAAABAAABBAABBAABABBBAAABBBBAAAAAABBBBBBBAAAABAAAABBAABAAAAAABAABBBBABABBAABBBBBABAAABBAAABAABABABABBBBBAABAAABBABBBAABBBBBABAABAABBABBBBBBBBAABAAAAAAAABBBBBBABBBBBABBABABAABBAAABBBAABABBAABBBAAAB...

output:

YES
1 2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 68 70 71 72 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107...

result:

ok good solution

Test #175:

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

input:

ABAABBBABABBAAABAABABBBBABBBAABBABAAABBABBAABBBBABABBAAABAAABBABBBBABAABBAABAAAABBAABAAAAAAABBABAABBBBABBBBAABBAABAABBBABABBABBAAAABAABABABBBABAABABBBBAAAAAAABBABBAABBABABBAABABBABABBABBBBBAAABBABBAAAAABBABBABBBABABBABAABAABABBBABAAAABBBABBBBAAABBAAAABBBABBAAABAAAABABAABABBABBBAABAAAAABABBAABBBBBABA...

output:

YES
1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 39 41 42 43 44 45 46 47 48 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 82 84 86 87 88 89 90 91 92 93 94 95 97 98 100 101 102 103 104 105 106 107 108 109 110 ...

result:

ok good solution

Test #176:

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

input:

BBBABAABABAAAABBBBBAABABBBBBABAABAABBAAABBABAABBAABABABAAAAAABABBABBABBBBABBBBBBBABAABBBABABAABBAAABAAAABBAAAABBAAAAAABAAABBAABABAAAAAABBBBBBBABABBBABABBBBBABAAABAABABBBBBABAAABBAAABAAABABABAABBBBBAAAAAABBAABBAABABAAAAABAABABAAABABBAAABBBABAABABBABAAAAAABBAAAAABBAABABAAABAAAAABABBBABBAABBAAAAAABAAAA...

output:

NO

result:

ok no solution

Test #177:

score: 0
Accepted
time: 4ms
memory: 5260kb

input:

BBBBBAAAABBAABAABAAAABABBAABAAAABBBBBABBAAABAAAAAAABABABAAABBBBAABBAAABBBBBBABBBAAAAAABABAAAAABABAABBAABBABBBBBBABABABABABABBABAAAABBBABABBABAAAABBBBBABABBABBBBBBABAAAAAAAABBAABABBABBAABBABBBBBABAABBBAABAAAABBBAABBBAABAABBBAAAAABAABBBAABBBBBBAAAAABBBAABBAAABBBABABAABAABBABAAAABAABBBABAAABABBBABABBAA...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 21 22 23 25 26 27 28 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 68 69 70 71 72 73 74 75 76 77 78 79 80 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109...

result:

ok good solution

Test #178:

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

input:

AAABAABBAAABBABAABABBAABBBAAABAAABBBBABAABBBAAAABABABAAAABAAAAABABBAABAAAABBBABAAAAABBAABAAAAABAABABABBABBAAAAABAABABBBBBAABAABBBAABBAAAABAABBAAAAAAABAAABAAAABBBBABBABAABBAABABBBAABABAAAABABBBABABBBABBBBBABAABBAAABAAABAABBABAABBBBABABABABBAABAABAAABBAAAAABAAABABAAAABBABBAAAAABBBABBABAABABBAAABBBAAAB...

output:

YES
1 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 1...

result:

ok good solution

Test #179:

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

input:

BABAABAABABBBAAABBAAAABBABAABABABBBABBABABABABBBABBAABBBABBBBAAAABBBBBABBABBBBABBABBABAAABABABABAAABAAABBBBABABABBABABAAABABABABAAAABBBBAAABAAABAAAABBAABBABBAAABBAAAAAABAAAABABBBBAAABAAAAAAAAAABBAAAAAAABABABBBBAABABABAABBBBBABAABAAABBBABABBABBABBBBBAABBBBABAABBAAAAABABBABBAABAABABABAAAAABABBBBAABBAA...

output:

NO

result:

ok no solution

Test #180:

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

input:

BABBAABBAABAAAABABABAAABBAAAABBABAAAAAABBABBABAABBBBABABBBBBAABBBBBABBBABABBBBBAAAABBABABBBABAABBAAAAABAABBBAAAABBBBBAAABABABBBBBAAABAABABAABBAABBAABBBABABBBBABBBAAAABAAABABAABBABABAABBBBBBAAABBBABBABBABAAABBABABAAABAABABBBBABAAABBAABBAABAABAABABBBBABAABBABABABBABBABABBBBAAAABAABBABBBABABBBABABBBBBA...

output:

NO

result:

ok no solution

Test #181:

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

input:

AABBBAAAAABABBABABAAABBABBBBBAABBBAAAABBAABBBABABBBAAAAABABBBBAAABBBAABBBBBAABABAAAABABBAAABABBBAABABABBBAAAAAABBABBAABBABAABBABABAAAABAAABAABABBBBAAAABBAABABAAABABBBAABBBBAAAABBBAAABABABBABABABAABBABBABBABBAAABABBABABABBBABBBAABBABABBBAABAAABABAAABAAAABBAABABABBABBABAAABBBABABBBBBBABBBAAABBBABABAAA...

output:

YES
2 3 4 5 7 8 9 10 11 13 14 16 17 18 21 24 25 26 27 28 29 31 33 34 36 37 38 40 42 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 64 65 66 67 68 70 71 72 73 74 75 77 79 80 81 82 83 84 86 88 91 92 93 95 96 98 99 101 103 104 105 106 107 108 109 110 111 113 114 115 116 117 118 119 120 122 123 124 126 12...

result:

ok good solution

Test #182:

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

input:

AAABBBBBABBABBABBABABBBBAAAAABBABAAAABBAAAAAAAABAABBBAABAAAABAABAABBAABAABBAABAAAABAABAAABABBABAAAABBAAAAAABAABABABBBABBABBBBAAABABBBABBBABBABBAAABAAABAAABBABAABBABAAABBABAAAABBABBABABAAABBAAABAABABAABBBABBBBBABAABBBBBAABAAABAABABAABAAAABAAABABBBBBABBBBABBBBABBAAABABBBBBBAABBABAABAABABAAABBAABABABBB...

output:

NO

result:

ok no solution

Test #183:

score: 0
Accepted
time: 4ms
memory: 5036kb

input:

BBBABBBBAABAABABBBBAAAAABBAAAABBABBAAABBBABAAABBABBABBBBBBABABABBBBBABBBBAABAAAABBBBAAABBBBABABAABBAAAABBBABABABAABBAABBBBBABABBBBBABBBAABBBAABBBABABBBABBBBBAAAABABBABBAABBAABBBBAAABAABBABBAABBBBAAAABAAABBBAABBBBBAABABABBABBABBBAAAAABABBBBBAABAAAAABABAABAABAAAABBABBBBAABBABBBAABBBAABAAABAABBBBABBBBA...

output:

YES
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 70 71 72 73 75 76 78 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 ...

result:

ok good solution

Test #184:

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

input:

BAAABABBBBBAABAABABBBBBABBAABBAABBABBABAABAABAABBBAAABBAABBBAAAABBBAABBBBAABABBAABBABBABBBAABAAAABAAAAAABBBAABABBBBABABBBBBAABAABABBAAABBBBBAABBABBAABBBAABABABBAAABAAAAAAABBBBAABAAABAABAABBBAAAAABABBBBABBABABABAABBAAAABABABAABAABBABABBBAAAAABABABBBAAABABBAABBBAAABAABABABABABAABABBBBBBAAABAAABABBBBBB...

output:

YES
2 5 7 11 13 15 17 18 23 25 26 28 30 33 34 35 37 38 40 42 45 46 47 50 53 55 57 59 60 64 68 69 72 73 75 77 78 79 81 84 85 86 87 89 90 91 92 93 98 101 102 103 104 107 108 109 110 112 113 114 115 117 118 123 126 127 128 129 131 132 135 138 139 140 141 142 145 148 149 151 152 153 154 156 158 160 164 ...

result:

ok good solution

Test #185:

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

input:

AAAAAAABABBABABAAABBAAABAABBBBBBBAABABBABBABBBBBBABBBAABBABAAAABAAABABBBABAAABABAAABBAABAAABAABABBBBABAAABAABAABABBBBBBABAAABAAABBABAAAAABABBABABBAABBABBBBBABBBAABBABABBBBAAABBBBBABBAABABAABBABBABABBABAABABBABBAABAABAABABBABABABABBABBAABBABBBAAABBABBABBABBBBBBBABBAAAAAABBBAABBABBBBABAABAABBBBBBBBBBA...

output:

NO

result:

ok no solution

Test #186:

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

input:

AABBAAAAABBAABBABBABABBBABBBBAAABAAAABAAABABAABAABBABBBBBAAABBAAAAAABABABAAABABBBABABABBABAABBABAABABBABBABBBBAAABBAAABBAAAAABAAAAAABBBBBAAABBAABBABBBAAAABBBBABBAAAAABBBBABBBBABAABBBABAABBABAABBBBAAABBABBABBBBABABBBABBAABBABABBBBBAAABAABAABBBAABABBAABBBBAAABABABBAABABABABBAAAAABBAABABABBABAABBBAAAAA...

output:

NO

result:

ok no solution

Test #187:

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

input:

BABBABBABBBBBABBAAABBABBBBBBBAAABABAAABBABBBBBBAABBBAABBBBAAAABAAAABBAABABBAABAABBAAAABABAAAABABABAAABBBAABBBBBBABBABAAABAABABAABABBBAABABAABAABBBAAAAABABABABBBABABABABABABBBBBAABABBBBAABBBABABBAAABAAABBABABBBAABBABABABABBBABAAAABABABAABABAABABBABBABAABBBAAABBAAAABBBAAAABBBAAAABABBABBBBABBAAABAAAABB...

output:

NO

result:

ok no solution

Test #188:

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

input:

ABAABAAABAAAAABAABABBBBBBABBAAAABBAAAAAAABABABAABBAABAABBBBBABAABABAAABAABBBABBBBBBABBAAABABBBBABBABBABBABAAAABBBABABBAABAABBBAAAAAABAABBABBAABBBBAAAAAAABABABABBBBABBBBBBBABBBBAABAAABABAABABBBBBAAAAAABAAABAAABABBBABABAAABABAAABAAAAAABAABAAABBAAABAAABBABAABAABABBBBAAAAAAABABABBABAAABAAAAABBABABBBBBAA...

output:

NO

result:

ok no solution

Test #189:

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

input:

BBABAAABBAAAABABABBABAAAAABABABABABAABABAABBABBBAAAAABBBBAABABABBABABBBBAABBBAABABBAABABBABBBAABAAABABAAAABBBBAABAABBABABBBBAAABBBAAAABBBAAAAABAAAABABBABAAABAABBBAAABABAAAAAABABABBABAABAAAABAABAAAABAABAAAAABAAABABBBAAAAABAAAAAAAABBAAAAABAAABBAAAABABABAAABAABAAAAABBBAAAABBBBAAAABABBBBBBAAAABBBABBAABA...

output:

NO

result:

ok no solution

Test #190:

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

input:

ABBBAAAAAABABBBBAAAABBAAAAAAAABBAAABABBAAABBAAABABABAABAABABABBABAAABAAABABAABBABBAABBABABABABBBAAAABBABABABBABBBAABAABBABBABBABAABAAAAAABBAABBBBABABBABAAABAABBBBBBBAAABBBAAAAAABBABABBAABBBAABBBBAABBAAABABABABBABBABBAABAABAABBAAABABAABBBABBABAABBABBBBBBABAABBAAAABBBBABABBBBABBBABABABAABBBBBBAABABAAA...

output:

NO

result:

ok no solution

Test #191:

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

input:

ABBBAABAAABBAABBABBAAAABBAAAABBABBBABAABBAABBBAABBAAAABAABAABBBBABBBABBBABBBBBBABBBAABBABABBABAAAAAABAABBABBBAABAABBAAABABBBABABBAABBAAAABABABBBBAAABAAABBAAAAAABBABAAABAAABBAAAAABABABBAAABBBBBABBABBABBBABBBBAAAABBAABABBABBAAAAAABBBBAAABAAABBBABAAAAABABBBBAAABAABBAAABABBAAABABBABAABAAAABABBABBAAAABAA...

output:

NO

result:

ok no solution

Test #192:

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

input:

AABBBABBBBAABABABBAABAABABBBABABBBBBBBABBABAAABBABABAABAABABAAAAABAAABBABABABBBAAAAABBABAAABAABAAABBAAABAABAAABAAABBBBBBAAABABBAAAABAABAABBBBAAABBAABBAAABABBBAABABBABBABAAAABBABBBBABAAAABBAAABBAABAAAAABBAABBBBABAABBBBAAAAAABBBABAAAABABBABABBBAAABABAAABBAAAABBAABABBBAAABAABBBBBABBAABABAABBBBBAABBAAAB...

output:

NO

result:

ok no solution

Test #193:

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

input:

AABABBABAABBBBBBABAAAABAABABAAABABBBBBBBAABABBBAAABBBABBBBABBAAABAAABABBBBABABBABBABBBBBAAAABBAAABAAAABAAAAABAAABBBAAABBBBBABABBABBBBAAABAAABBBABBBABBBBABBBBBBAAAABBABBAAABAABABBAABBAAABAABABAAABBABBBBAABABAABBAAABABBBBAAAABBAAAABAAAAAAAABAAAAAAAAAAABABBBABAABAAABAAAAABAAABBBAAABBABBAABBBABAAABBBABA...

output:

NO

result:

ok no solution

Test #194:

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

input:

ABBABBAABBBABBAAAAAABBBBABBAABBBAAABABAABBABBABBBABBBABAABAAABAABBABAABABAABBABAABBBBAAAABABABBAABBABBBBAAABABABBBAABABBAAAAAAABBABABAAABAAAABAABBBBABAAAABABAABABABBBAABABAABAAAAAABAABABAABBABAABABABABABABBABABABBBAABBBBBAAAAAABBABBBABAAAAAABABBABBABAABAAABABAABABABAABBBAABBABBBBBABBABBAABABBABAAABA...

output:

NO

result:

ok no solution

Test #195:

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

input:

BAABAAABAABABAAABBBBABBAABABABAABBBABAABBBABABBBBABBAAABBABAAAAAAAAAAABAABAAAABAABBBAABABBBBABAAABBAAAABBAABAAAABAAABABAABBABBBBABBABAAABAAABAAAAABBBBBAABBBAABABBBBABAAAABABABBABABBBABBBBABABBBAAABAAAAABAAAABABBABABBAABBABBABAABBAABBBABABBBBBBBABBAAABBBBBAABBABAAABAABAABBAABBBBABBBABABBBAABAABAABAAB...

output:

NO

result:

ok no solution

Test #196:

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

input:

ABAABBABAABBBBAAAAAAAABAABBBBAABAAABAAABBAABBAAAABBBBBAAAABAAABBBAAABBAAAAAABBBBBBABABABBABBABABBBBAAAAABBBBBBABBAABBAAABBAABAAABBABABBABAABBAAABBBAABABBBAAAABABAAABBAAABBABBABBBBABAABBABBABBAABAABAABABBAABBBBBAABABAABBBBBABABBAAABBBABAAABAAAAABBABBABBBBBBBAAABAAABAABABAABBABAAAAABBBABBABBBABBABABBB...

output:

NO

result:

ok no solution

Test #197:

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

input:

BBAABAABAABBBBBBAAAAAAABABAAABAABAABAAAABBBBBABAAAABBBAABABAABBAABAABAAABBABBBAAAABAAABABABABAAAAAAAAAABBBBAAAABBBABBAABAABAABAABAABABAABBAAABAAAAAAAAABBBABAABABABAAAAAAABAABABABBAAABBAABABBBBBABBBABBAABBABABBAABBBBBABBBBBABBBAABABBABAABABBAABBAABBBAAABBBAAABBABBBABBABAAAABBBBBAAAABAAABBAABABBABBBBA...

output:

NO

result:

ok no solution

Test #198:

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

input:

AABBABAAABBBBBAAABBABBBAABAAAAAAAABBABAAABAABBAAAABBAAAAAAAAAABAABABBBAAAAABAAAABBABAABBABAABBABBBBBBBBABABAAABAAAABBAABAAABAAAAAAAABABBAAABBABAAABABBBBABBBAAAAAAABABABAAAABAAAAAABBAABBBABAABAAABAAAAABABBBABBABAABAABBBBBAAAAAABAABBBBBBBAABAABBAAABABAAABAABABBAABBBAABBBBAABABBBABAABBAABBBBAABAAAAAABA...

output:

NO

result:

ok no solution

Test #199:

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

input:

BBBAAABBAABAABBBAABBBBBABBABABBAAABBAABBABBAABBBBBABBBABBBABBBBBBABAABBABABBAAAABABAABBBBAABABAAAABAABABBAAAAABBABAAABABAABAABBBBBAABABBAAABBBABAABBABBAAABABBAABAABABBBABAAAABAABBABBBBABABAABAAAABAABAABBABABBAABBAAABBBBBABAABBAABAABBABABABBAAAAABAAAABBAABBAAABAABBABBBAAAABABBABABABBAAAABBBAAABBAABBA...

output:

NO

result:

ok no solution

Test #200:

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

input:

BAABBAAABBAAABBBAABABAAABAABABBBAABBBBBABBABAABABBBBAAABBAAAAABABBBAAAAABABABBAAABBAAAABBAABABBABAABBBAAABABABBABABBABAAAAABAAAAAAABAABAABAABBBAAAABBAAAABAAAAABBBAABAAAABAAABBBABAAABABAAABAABAAAAAABABBBBAAAAAABBBAAAAABBABABBAAABAABBBBBABABBBBBABABAAABABAABABAABBBABABBBAABAAAAABAAABABAABABBBBBBBBABAA...

output:

NO

result:

ok no solution

Test #201:

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

input:

AABBBBABAABBAAABBAAAAAABAAABBABBABAABABBBABBBBBABBBBBABBBABBBABBABBABBAAABBBBBBAABAABAAAAABAABBBAAABABAAABBAABBAABABAAAABBABABAABABBBBABBABBBAABBABBBAAAABAAAABBBAAABAAAAABABAAABABAAABAAAAAABABBBAABABABAAABAABBABBABBBBABAAAAAABBBAAAAABBBABBBBABBBBBAAAABBBBBBAAABABBABABBBBBABABBAAABABAABBBAAAABAAABABB...

output:

NO

result:

ok no solution

Test #202:

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

input:

AAAABABAAABBBBABBBABAAABBAAAAAAABAABBABBAAABBBAABAABBABBBBBAAAAAABABABAABAAABAABBABAAAAABABBBAABBABABAABBABAAABAABBABBBBBAAABAABABBABABABAABABAAAAAABABAABAABABBAAABAABABBABBAAAAAABAABABBABAABBBBBAAABBAABABABAABABBAAAAABABAABBABAABBBBABBAAABAABBABBBAAABAAABAABBABAAABBAAAAAABBABBAABBAAAABAABBBABAABBAA...

output:

NO

result:

ok no solution

Test #203:

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

input:

AAABBAAABAAABAABABAAABBBBBABAABABAABAAAABBABBABBBBAABBAABBBBBBBABAAAABBBAAAABABABAAABABAAAAAABBBABBBABBBBBABAABABBABBABAAAAAABBAAABABABBABABABBBAABABAABAAAAABAAABAABAABBBABAABAABBAAAAAABABAAAABABABABBBBAABABBBBABBBAAAAAABAABABBABAABAABBBBBBBBABBABABABBAAABABABBAAAAABBABBABABBAAABBBAAABBAABBBAAABBABB...

output:

NO

result:

ok no solution

Test #204:

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

input:

BBBBAABBBBBBBABAABAABBABAAAABABAAAAABBBBBBAABABBBBBABAABBABBBAAAAAABBABBABBBAABBBBABBAABBAAAAABAABBAAABAABAABBBBBBBBABBAAAAABABBABAABABABBAABBAABBABAAAABBBAAABAAABAABBBBBABABAAAAABBABAABAAAABAAAABBABAABABBBAAABABABBABBBBBAABABAAAABBBBABAAAABABABABBAABBBBAABABABAABAABBAAAABAABBBABAABBAAAABBAAABAAAABA...

output:

NO

result:

ok no solution

Test #205:

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

input:

AAAABBAAAAABAABABBABAAABBAAABBABBBABBBAABBABABAABAABBBBBBBBBBAAAAAABBBBABBABBAABABAAAABBAABABABABABBBAAAABAABBAAABABABBBABBBBABBABAAAABBBBBBABAABBBABBBBABBBABBABBBBAABBAABBABAAAAAAAABAABBBBAABAAABABAAAABAAAAAAABBAAAAABAABBABABBBBBAABBBAAABBAAAAABBABABAAABAABAABAABBABBBBABAABAABBAAAAAABBAAAAABABBABAA...

output:

NO

result:

ok no solution

Test #206:

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

input:

AABBAAABBABBAABAAAAAABBBABAAAABAABBBAAABBABBBBBAAABBBBBAABBABAABABAABBAABABAABAAABABABAABABBBAAABAABBABABBABAAABBBBBBAABABABBAABAAABBBABABABBABBABBBABBAABBBABBBABABABAABAABABBBABAAABBBBBBABBBBABBBBBBBAABBABABAABBBABBAAABBABABBBBBBABBAAABAABAABABBBAABAAAABBBABAABAABAAABAAAABBBAABABABBBABAAAAABAAABBBB...

output:

NO

result:

ok no solution

Test #207:

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

input:

AABBABBAABABBABABBBBAAABBAAAAABABBBBBBBABABAAABAAABABAABBBBAAAABBBABBAAAABAAAABBAABABAABAABBBBAABAAAAAABAABBBAABBAAAAAAABAABBAAAAABBABBBBBBBBBBBBBBBAABBBABBBBBBBABBAAAABBBBBBABABBAAAABBAABABAAAABAABABBAAAAABAAABBAABBAABBBBBAABABBABABABBBABBBBABBAABABAABABABBAABBBABBAABABBAABABBAABAABBAAABAAABABAAAAA...

output:

NO

result:

ok no solution

Test #208:

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

input:

ABABBBBAAABAAAABAABBABABBBAAAABBABAABAABABBABAAAABAAABBABABABABBABBABAABABBBBABBABABBAABAAAABAAABAABBBBAABABABBBBABAABBBABBABABBBAAABAAABABABBAAAABAAAABAAABBBABAABBBBABBBBABBAABAAABBBBAAABABBAAABAABBBBBBBAAABABBBBBABBBABBAABABBBABBBBBAABBAABBBABBBABBABBBBBAABAAABABAABAABAAAABBBABBBAABAAABABBAAAABABB...

output:

NO

result:

ok no solution

Test #209:

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

input:

BBABAABBBABAAAAAABBABBAAABAAABBBBAAAABABBAAABBAABBBAAABABBABBBBBAAAABBABAABABAAAAABBABBBAAAABABAABAABAAAAABABBABBAABABAAAAABAABABBAABABAABBBAABBAABAAABAAAAAAAAABBBABAAABABBAAABBBBBABBABBBAABBBBABABBAAABABAAABBBAAAAABBBBBBABBABAAABABBAABAAAAAAABBBAAAABABAABBAABBBAAAABABBAABABAABABBBBBBAAAABAAABAABABB...

output:

NO

result:

ok no solution

Test #210:

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

input:

AABAAABBAAABBBAAABABBAABABAAABABBBBABBBBABBABABABBABABAABAAABBABAAAAAABAAAAABAABABBBBBAAABBAABBBBABBAAAAAAAAABABBBAAABAABBBBABABBABAABBBBBABBABABBBBBBBAABABBBABABBBABABBBBABBBAABABBBAABBAABBBAABBBBABBBABBABABBBABABBBBBBAAAABBAAAAABAABBBABAAABAAABBAAAABAAAAAAAABBBBBAABBBBABAAAABBAAABBBABABBAAABABBBBB...

output:

NO

result:

ok no solution

Test #211:

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

input:

AAABBAABBABBABBBBABAABABBAAAAABBBBBBAAAAAAAABBABBBAABBAABBBAAABAAABBAABBABAAABBABAABBAAAAABABBBABBABABAAABAABAAABABAABBBBBABAAAABABABABBBAAAAAABBBBABBBAAAABABBAABBBABABBABABBBAABAABBAABBBBBBBBAABBBBABAABBBABBBABBAABBBAAABAABBBBBBAAAABAAAAAABAABBAABABAAABABAAAABBBAAABBABABABBBAABAAAABBBABABAAAAABABAA...

output:

NO

result:

ok no solution

Test #212:

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

input:

BAABAAABBABABBAAABBBABBABABABBAABBBBABAABAABBAABBBBAABBABBAAABABBBAABBBABBABAAABBBAABBABBAAAAABBBBBBABBBBAAAABBBBABABBBBABBABBBBABBAAABAAABBBBBBABBAAAABABBBBBABBABABBBAAAAAAABABABAABAAAAABABBBAABAABBABABBBABBBABABBAABABAABBAABAABBBBBABBBBBBABBBAAAABBAABBBABABBBBABBBAAAABBAAABAAAAAABBAAABABAABABBBBBA...

output:

NO

result:

ok no solution

Test #213:

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

input:

AAAABAAABABABBAAABBABBBBBBAABBBAABBAABABAABAABABABAABBAAABAABABBABBAABAAABBAAABBAAAAABABAAAAABBBBBABABABABAAAABBABBBBBBBBAAAABAABBBABBBBAABABAABABAAAAAABABBABABBAABAABBBAABBAAABBABBBABBABBABAAABBABBABBAABBBBBAAAABABBAAAAAAABABAABABABBBBAAAABBABBAABBABBAAABBABBBBBABBAABBAABABABAAAABBBBBAABABABBAAABBA...

output:

NO

result:

ok no solution

Test #214:

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

input:

AABAABBABABBBBBBBBABABAAAAAABBAABABAAAAAABBABBBBAAABAABBBBBBBAAAABBAAABBBBBBBAAAABABBAABAABBBAAAABABABAABAAAAAABAAABABBABABBBAAABBABABAABABABABABBBABABBBABAABBAAABAABBAAABAAAABAAABBBABAAAABAAABBABAABAABBAABBABBAABBAABBAABBAAAABAAABBABBABBAAAAABAABABBAAABBBAAABAABAABAABBAABAABABABBBABABAABABAABBBAAAA...

output:

NO

result:

ok no solution

Test #215:

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

input:

AABBBBBBAABBBABBBBAAABABAABBBBABBBBBBBABBAABBABABABABBABBAAAABABBBBBABABBAABBAABBBABBAABABBBAABAABBAAAAAAABAABBBBABBBBAABBABABAABBAABAABABBBABAAABAAAAAAABBBABAAAAAAAAABBBABAABAABAABBBBAABAAAABABAAAABBABABBABABAABBAABAAABABAAAAAABBBBBBBBAAABABBAABBAABABABBBBABAAABBBBAABABABBABAAABBBBBABAABBAAAAABBBAA...

output:

NO

result:

ok no solution

Test #216:

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

input:

ABAAAABBABAAABAABBBBBAABBAAABAABBAABAABBBBBBBBBBAABAABBBABAABAABBABAABABBBAAAAABABABBBBBAABAABABABAABABBBBAAAAAAABABABABBABBAABABAAAABABABBABABBBBABAAABABAAAAABBBBBAAABABABBBBBABBAABABBAABBBBABBBBABBAABAAABBBBABABBBBABABBAABABBBAABBBABAABABBABBBBBABABBAABBAAABAAAABBBBBBBBBAABBABBABBBBBBABAAABBABAAAA...

output:

NO

result:

ok no solution

Test #217:

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

input:

AAABABAAABABAAABAABAAABAAABBAAABABBABBBBABABBABBBAABABBBBAAABBBAABABBAABAABABBAAABABBBBAABABBAAABBAAAAAABBAAAAABBBBBABBAAAABBABAAABAABBABBBBBABAABBBABAAABABABBBABBBBABAABABBBBABABBBAABBAABAABABBBABAAABBAAABAABBBAAABABBAAABBBBABBBBABAABBBAAABBAAAAAABBAABAABAABAAABABBBBAAAABBBAABBBABABBBBAABABBAABBBAB...

output:

NO

result:

ok no solution

Test #218:

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

input:

BABAABAAAABABABABBBBBBBBBABBABBABBAAAAAAAAAAAAAAAAABBAAAAAABBABBAABBAAAABAAABAAAABABBAABBBABAAAABABABABABABBAAABAAAABBAAAABABAAAABAAABAABAAABAABBBAABBBBAAABBBBBABBAAABABAABABABBABBABAAABBBBABBBBBBBBAABBABABBBBABBBBABBABBBBBABABBABAABBBAAABBABABBAABBBABABBAABAAAABABBBABAABABBBBBBBABAAABAABABBBBBAABAB...

output:

NO

result:

ok no solution

Test #219:

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

input:

AAAAAABAABBAABABAABBAABABAAAABBBABABBABABAAAAAABAABABABAABBABAABBBBABAAAABAABAAABBABAAAABAABBABAAABBBBBAABBABBBBBAABAABBBBABABAABABBAABAAABBBBBBBABABBBBAABABBABAABABAABBAAABABBABBBAABBBBAAABBABBAAABBBBABBBBBBABABABABBBAABABBABBBAAAABABAAAABABABBBBBABBBBBBBAABABBABBABBBABBBBBABABBBABBABBABBBAABBBAAAB...

output:

NO

result:

ok no solution

Test #220:

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

input:

BBABAAABBABABBAABBAABBABAAABABBABABABBABABBBABAAAAAAABAABABBBBBAABBABAAAABBBBBBBBAABAABAAAAABBABBBABABABBBABBBBBABABBBBABABBBABABABBABAABABABAAAABBBBBAABAAAAABBBBAAABABBBBBBAABABBBBBBBABBAAAABBBBBAABBBBABBBBAABBBABABBABABBAABAABAABBAABBABBBBABABAABAABBABBAAAAAABBABABABBBABBBBAABABBABAAABAABAAAAABBAA...

output:

NO

result:

ok no solution

Test #221:

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

input:

ABABBBABBAABBBAABBBAABABABBABBBBABABBBAABAAAABABAAABBBABBAABAABABBABABABAABBBBABAABAABAABABABBBABAABBBAAABBAAAAABAABBBBBBABBABBAAABBAAABBBABABAAAABBBBAAAABABAABAAAABBBBAABBBAABAABABBBBABABAABAABBAAABBBBAABBAABAAABBBBBBBAAAAABBBAAAABAAABBBBBBBAAABABBAABBBAABAAAABAABABAABBBABBBABBBABABAABBBAAABBAAABAA...

output:

NO

result:

ok no solution

Test #222:

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

input:

BAAABBBAAABBBABBABBBAAABBBABBBBBABABAABBBABBBBBBABBABABBBABBBAAAABABBABAAAABABABAAAABBBABBBBAAABABBABBABAABAABABBBAAABBBBBABAABAABABABBBABAABBAAAABAAAABAABABAAABBAAABBABBBBABBABBAAABBBAAAAAABAABAAAABAABABAABBBABBBBAAABAABAABAAAABABABBAABAAABBAAAABBABBBBAABBABAABAAABBBABBBBAABABBBBAAABBBAABAABAABBAAB...

output:

NO

result:

ok no solution

Test #223:

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

input:

AABBABAAABABBAABBBABABAABAABABABBAABBBBABAABBABBBABABBAABBABBBAABBAAABBAAAAABBABBABBBAAAAABABABAABBABABBBBBABABBAABABBBABBBAAABABBABBBBABAAAABABAAABBBABAAAABBABABBABAAAAAABAABAABAAABBAAAAABBAAABBBAAAABBBBBABAAABBABBBABBAABAAABABABBABBAABBBBBABBABABBBBBABAABABAABBABAABBAAABBAAABAABAAAAABBBBAAAAABAAAA...

output:

NO

result:

ok no solution

Test #224:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
2761 2762 5467 8108 8110 9486 12248 12250 13690 15110 16491 17834 17835 19216 21919 21920 23269 24646 26020 27442 28788 30214 34222 35654 37038 38418 38419 39741 42450 45214 47990 49397 50775 52179 53532 56310 57643 58972 60303 61688 63053 65857 67193 68604 69986 74089 75494 78163 79529 79530 80...

result:

ok good solution

Test #225:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
2977 5899 8827 11813 14878 17993 24004 26955 29997 32993 39182 42180 45175 48117 51095 60237 63262 63263 63264 66402 75507 75508 75509 75510 75511 78570 87758 87759 

result:

ok good solution

Test #226:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
2531 5207 7773 10335 12889 15538 20796 23539 26198 28897 31501 34033 36606 36607 39214 41764 44430 47029 49552 52205 57431 62604 65213 67819 67821 70425 73025 75598 78160 83393 85958 88549 91211 93763 93764 93765 

result:

ok good solution

Test #227:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
274 801 802 1042 1927 2205 2493 2782 2784 3070 3343 3344 3605 4153 4154 4441 4708 5001 5267 5521 5788 6037 6327 6632 6912 7199 7520 8030 8303 8605 8914 9162 9472 10042 10606 10886 10888 11171 11772 12054 12055 12338 12339 12604 13446 13750 14026 14312 14878 15423 15709 16289 16547 16809 16810 17...

result:

ok good solution

Test #228:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBB...

output:

YES
37 163 200 226 227 228 297 460 461 462 463 464 494 533 569 645 646 690 789 790 825 826 864 897 933 

result:

ok good solution

Test #229:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
7037 11655 14023 16462 18848 21151 23573 25881 28204 32977 37723 40175 42525 44910 44911 44912 44913 47244 49582 54268 56652 59087 61495 61496 63884 63885 63886 66206 68540 77936 77937 77938 

result:

ok good solution

Test #230:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
3901 19391 23351 27299 35094 35095 39001 46746 50476 50477 54352 54353 54354 54355 58219 66063 

result:

ok good solution

Test #231:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
4650 4651 7013 9235 18384 18385 18386 18387 20682 22964 27580 27581 29860 

result:

ok good solution

Test #232:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
1895 3766 5526 7368 9314 11180 16749 16750 

result:

ok good solution

Test #233:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
2401 4856 7173 9661 12063 16862 19296 21792 24217 26578 31419 33836 38629 38630 41128 43594 48392 55651 58104 58106 60579 63039 65415 67925 67926 70349 70350 72806 75270 75271 75272 77692 

result:

ok good solution

Test #234:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
493 1004 1517 2007 3048 3049 3509 4001 4486 4984 5518 6020 6516 6977 7459 8468 9017 9512 9998 11406 11915 12443 12965 13933 14420 14929 14930 15398 15956 16427 17935 18366 18367 18830 19339 20315 20317 20812 21816 22295 23239 25264 25728 26234 27239 27734 27735 28257 28743 28745 29235 29726 3122...

result:

ok good solution

Test #235:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
2220 4404 6515 8714 12961 12962 15067 19408 21539 28085 30342 32538 34659 38973 38974 41133 43215 45391 47548 49783 54115 56210 58317 60569 62713 64866 64867 67093 69216 69217 69218 71389 71390 73503 75595 79928 82095 84243 84244 86425 88580 90781 

result:

ok good solution

Test #236:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
897 1869 2804 3722 4650 6421 7338 8307 9252 10192 11167 11168 12099 14041 14042 15816 16757 16758 17696 19518 19519 20444 21335 23217 24159 24160 25078 25992 26970 27913 28888 29824 31646 33527 33529 34500 35423 36326 38180 40050 41027 42020 43030 45761 46693 47617 48614 48616 49552 50449 51409 ...

result:

ok good solution

Test #237:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
484 953 1420 2302 2747 3202 3669 3670 4598 4599 5093 6044 6045 6531 7012 7425 8774 8776 10170 11115 12160 12646 13087 13995 15374 15865 16337 17254 17726 18188 18680 19116 19592 20047 20507 20999 21000 21001 21002 21500 21501 21984 22450 22451 22941 23901 24363 24845 25320 25321 25791 25792 2579...

result:

ok good solution

Test #238:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
735 1439 2171 3651 3652 4414 5163 5882 6610 7319 8793 9512 9513 10263 11692 11693 12429 15391 16167 16922 17667 17668 17669 

result:

ok good solution

Test #239:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
1856 3626 5434 7254 10887 14557 16340 18102 20005 23699 23700 25522 27367 29203 31052 32961 38607 38609 42266 42268 47839 49656 51539 51540 53391 55237 57067 58961 60768 62595 64404 66316 66317 68132 69978 69979 69980 71855 71856 73679 75455 77299 79145 80996 82904 

result:

ok good solution

Test #240:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
182 394 601 789 978 1186 1386 1591 1807 2007 2360 2550 2723 2904 3119 3302 3303 3924 3926 4538 4748 4949 5137 5328 5330 5527 5926 6140 6351 6752 7143 7563 7762 7951 8151 8354 8545 8933 9130 9131 9132 9353 9692 9693 9896 9897 9898 10073 10472 10473 10474 10475 10644 10854 11226 11227 11228 11423 ...

result:

ok good solution

Test #241:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
1489 2978 7531 7533 9063 10555 15009 17943 19380 22289 25290 28275 29742 31243 32678 34087 35653 37172 38644 40133 41586 44477 45976 45977 48966 48967 50464 50465 51952 53397 53398 54874 56387 60883 62345 62346 62347 63866 63867 68293 69777 71257 71258 72720 72721 74186 74187 75658 75659 75660 7...

result:

ok good solution

Test #242:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
3126 4742 7948 11113 12720 12721 15841 17418 18927 20460 23597 25155 26748 28198 29745 32854 32856 34441 37575 39189 42317 43913 45484 45485 47080 48637 48638 50300 51916 53424 56504 58049 59661 59662 59663 59664 59665 59666 61270 62903 64483 66058 67735 70848 70849 72411 

result:

ok good solution

Test #243:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
703 705 942 1151 1399 1620 1621 1865 2089 2335 2553 2769 3250 3484 3708 3927 4159 4414 4919 5159 5618 5846 6310 6558 6801 7033 7035 7269 7270 7499 7708 7934 7935 8166 8375 8603 8816 9041 9275 9498 9975 10216 10445 10701 10930 11173 11174 11396 11657 11895 11896 12107 12558 12804 13043 13280 1400...

result:

ok good solution

Test #244:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
898 1763 2623 3576 4518 5387 6299 7203 8121 8984 9908 11695 11696 12625 13495 14399 15282 16212 17087 18906 19867 21643 23493 24390 26183 27083 28025 28968 29878 30778 33523 34364 34365 35273 35274 35275 36240 36241 37168 38071 38072 39902 40784 41701 41702 41703 42603 

result:

ok good solution

Test #245:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
448 606 750 752 919 1072 1247 1404 1889 1891 2029 2030 2184 2509 2511 2649 2818 2987 3122 3123 3438 3439 3900 3902 4039 4199 4381 4853 4988 5157 5301 5477 5628 5629 5783 5784 5957 6127 6277 6412 6557 6736 6895 7211 7355 7490 7626 7782 7945 7946 8079 8219 8360 8516 8664 8822 8992 9149 9313 9633 9...

result:

ok good solution

Test #246:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBB...

output:

YES
73 148 226 286 348 426 567 688 749 900 976 1040 1177 1314 1455 1517 1578 1650 1722 1846 1925 1985 2120 2189 2190 2251 2253 2312 2442 2521 2589 2664 2864 2865 2927 2988 3054 3119 3185 3187 3263 3320 3388 3390 3473 3545 3546 3599 3670 3850 3915 3993 3995 4060 4061 4192 4257 4379 4435 4495 4496 457...

result:

ok good solution

Test #247:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
555 1070 1577 2101 2639 3113 3622 4648 4649 5719 6229 6230 6756 8234 8739 9259 9746 10258 12292 13344 13888 13890 14379 14878 14879 15390 15896 16411 16921 17456 17956 18467 20560 21050 21051 21597 22120 22121 22122 22657 23181 23182 24160 24161 24162 25151 25658 25659 26274 26275 26276 26807 27...

result:

ok good solution

Test #248:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAA...

output:

YES
152 289 712 840 999 1144 1268 1425 1556 1557 1690 1836 1983 2106 2226 2348 2349 2494 2624 2768 2892 3194 3195 3347 3470 3593 3882 4033 4317 4437 4882 4883 5024 5026 5181 5305 5579 5869 6028 6166 6444 6587 6725 7020 7291 7414 7559 7560 7816 8103 8368 8498 8630 8756 8901 8903 9155 9286 9554 9697 9...

result:

ok good solution

Test #249:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
61 243 341 400 443 492 816 880 1038 1092 1193 1233 1287 1333 1391 1500 1502 1603 1699 1800 1853 1905 1946 2010 2074 2129 2294 2409 2505 2544 2546 2600 2656 2820 2868 2918 2969 3023 3075 3133 3183 3241 3351 3398 3458 3524 3578 3580 3633 3703 3746 3796 3840 3892 3955 3997 4128 4181 4236 4287 4345 ...

result:

ok good solution

Test #250:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
86 302 595 597 801 877 878 974 1069 1166 1167 1256 1346 1347 1549 1646 1752 1958 2054 2150 2152 2342 2427 2535 2648 2731 2836 2837 2934 3015 3016 3212 3303 3411 3584 3689 3782 3868 3869 3979 4078 4179 4289 4509 4590 4694 4792 4885 5101 5193 5272 5578 5769 5949 6047 6149 6344 6532 6636 6836 6937 ...

result:

ok good solution

Test #251:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
107 230 441 633 867 972 1066 1360 1464 1574 1751 1850 1852 2071 2073 2169 2270 2374 2486 2487 2593 2595 2692 2787 2900 2902 3010 3107 3207 3303 3304 3426 3542 3723 3946 4043 4045 4260 4374 4482 4581 4691 4797 4901 5008 5305 5412 5515 5615 5714 5916 6015 6123 6226 6322 6413 6986 7103 7407 7606 77...

result:

ok good solution

Test #252:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
181 381 584 1185 1376 1571 1744 1951 2376 2592 2593 2762 2763 2954 3348 3561 3937 4150 4544 4788 4790 4978 5362 5540 5726 5917 6335 6527 6529 6720 7154 7561 7795 7796 7972 7973 8177 8380 8381 8576 8777 8966 9389 9575 9779 9990 10183 10392 10593 10594 10773 11179 11354 11752 12158 12552 12772 127...

result:

ok good solution

Test #253:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAA...

output:

YES
149 285 422 569 731 1009 1153 1307 1761 1895 2054 2209 2360 2530 2677 2816 3223 3353 3501 3794 3953 4110 4259 4435 4587 4724 4725 4877 5030 5031 5449 5592 5742 5909 6058 6228 6510 6650 6805 7094 7570 7721 7869 8005 8137 8259 8397 8698 9009 9162 9420 9581 9740 10147 10600 10749 10884 11026 11176 ...

result:

ok good solution

Test #254:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
135 372 948 1066 1183 1296 1430 1545 1675 1927 2187 2189 2319 2449 2569 2683 2801 2943 3053 3054 3169 3170 3294 3403 3404 3522 3653 3655 3770 3897 3899 4177 4305 4447 4709 5091 5314 5421 5535 5916 6037 6406 6536 6538 6660 6918 7035 7159 7371 7483 7485 7595 7850 7991 8120 8122 8243 8375 8504 8506...

result:

ok good solution

Test #255:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
65 133 201 348 415 478 553 623 769 1001 1071 1131 1189 1191 1267 1357 1419 1476 1544 1617 1704 1774 1853 1935 2009 2011 2084 2085 2154 2237 2317 2461 2528 2602 2674 2732 2804 2869 2943 3022 3084 3156 3212 3347 3414 3562 3563 3637 3711 3792 3794 3935 3994 4072 4149 4215 4293 4295 4354 4547 4627 4...

result:

ok good solution

Test #256:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
91 159 230 335 458 518 588 654 719 763 830 883 951 953 1103 1234 1235 1311 1384 1450 1500 1554 1682 1740 1807 1869 1924 1979 1980 2050 2116 2118 2263 2335 2406 2532 2585 2656 2658 2718 2786 2852 2927 2997 3050 3104 3231 3295 3357 3411 3412 3543 3622 3689 3753 3895 3958 4023 4223 4270 4402 4464 4...

result:

ok good solution

Test #257:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
242 527 803 1862 2405 2939 3222 3445 3715 3985 4254 4768 5041 5320 5322 5595 5596 5852 6405 7006 7275 7524 7808 8053 8315 8622 8623 8907 8909 9183 9185 9421 9929 10220 10222 10495 10761 11042 11866 12115 12623 12892 13161 13685 13935 14206 14488 15012 15290 15556 15789 16036 16037 16546 16547 17...

result:

ok good solution

Test #258:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
261 777 1272 1750 2249 2485 2746 3001 3251 3489 3490 3747 4519 4783 5044 5317 5572 5573 5815 6065 6314 6526 6786 7050 7572 7818 8351 8638 9435 9682 9938 10178 10695 10969 11229 11501 11502 11781 12033 12034 12530 12783 13282 13541 13543 13777 14305 14594 15118 15370 15832 16077 16331 16583 16584...

result:

ok good solution

Test #259:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBB...

output:

YES
51 117 175 293 353 407 476 477 532 597 772 955 1014 1083 1165 1224 1268 1270 1321 1383 1445 1507 1573 1642 1702 1775 1907 1963 2017 2080 2213 2387 2505 2507 2557 2730 2731 2795 2865 2932 2933 2986 3043 3097 3155 3269 3320 3430 3549 3658 3775 3828 3890 3942 4003 4005 4190 4265 4267 4336 4400 4532...

result:

ok good solution

Test #260:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAA...

output:

YES
53 91 137 207 248 297 351 401 519 635 690 795 797 852 853 901 948 1000 1054 1055 1113 1168 1227 1342 1406 1515 1628 1792 1793 1846 1899 2004 2051 2214 2282 2340 2398 2453 2551 2553 2610 2781 2782 2881 2882 2937 2938 2983 3037 3092 3200 3360 3417 3460 3507 3605 3751 3853 3912 3914 3964 4012 4135 ...

result:

ok good solution

Test #261:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
166 351 694 1070 1248 1403 1405 1585 1754 1942 2132 2674 2845 3213 3388 3582 3762 3959 4298 4638 4986 5520 5697 5895 6218 6399 6572 6761 7144 7539 7719 7720 7899 8604 8790 8966 9149 9347 9523 9700 9878 10039 10396 10398 10566 10568 10727 10728 10879 11060 11237 11603 11782 12145 12449 12635 1263...

result:

ok good solution

Test #262:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
102 206 544 643 758 876 994 1090 1201 1393 1517 1611 1613 1713 1811 1923 2016 2018 2149 2259 2260 2470 2583 2704 2891 2893 2993 3106 3198 3405 3499 3620 3734 3736 3846 3964 4076 4173 4362 4463 4464 4564 4672 4790 4889 5015 5016 5205 5304 5410 5589 5707 5819 5943 6048 6151 6267 6269 6373 6471 659...

result:

ok good solution

Test #263:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
699 1420 2191 3654 4377 5120 5870 6603 7281 8657 9398 10132 10858 12392 13068 13069 13822 13823 14534 15269 16734 17430 18902 19631 21050 21771 22491 23175 23915 23916 24648 24649 26085 26856 27572 28246 28993 28995 29725 30421 31934 31936 32668 33365 34061 34749 35497 37643 38369 38370 39093 39...

result:

ok good solution

Test #264:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAA...

output:

YES
69 131 286 358 430 497 498 558 724 778 840 1078 1139 1212 1347 1349 1417 1493 1563 1642 1710 1826 1880 1954 2026 2097 2163 2233 2376 2378 2597 2669 2740 2812 2888 2890 2960 3031 3118 3192 3334 3336 3392 3700 3909 3980 3981 4105 4167 4169 4236 4304 4306 4369 4447 4532 4684 4763 4823 4898 5041 511...

result:

ok good solution

Test #265:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
79 169 242 331 413 497 573 758 849 850 1006 1007 1095 1188 1277 1362 1449 1538 1611 1695 1852 1853 1928 2001 2071 2249 2337 2411 2673 2746 2837 2920 2996 3065 3067 3163 3266 3336 3338 3421 3512 3592 3593 3688 3767 4025 4027 4117 4266 4268 4347 4529 4607 4867 4868 4964 4966 5135 5455 5520 5589 55...

result:

ok good solution

Test #266:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAA...

output:

YES
65 139 216 281 371 450 662 735 793 952 1181 1259 1260 1347 1506 1584 1668 1669 1740 1818 1876 1945 2035 2178 2248 2394 2483 2547 2637 2849 2851 2920 3064 3147 3305 3306 3384 3451 3537 3613 3675 3743 3812 3957 4018 4103 4104 4173 4174 4369 4370 4441 4762 4920 4996 4998 5171 5308 5387 5469 5551 56...

result:

ok good solution

Test #267:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
143 144 306 377 378 448 529 594 745 746 966 1110 1178 1180 1240 1297 1375 1563 1565 1637 1717 1718 1792 1934 1989 2038 2108 2171 2318 2320 2394 2461 2463 2611 2676 2744 2816 2817 2885 2964 3050 3125 3200 3280 3352 3429 3508 3643 3708 3785 3787 3861 3941 4019 4104 4166 4235 4319 4396 4488 4603 46...

result:

ok good solution

Test #268:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
114 221 463 464 610 860 861 967 1102 1402 1538 1689 1812 1956 2092 2218 2345 2481 2747 2854 2985 3250 3252 3378 3644 3781 4055 4198 4309 4310 4449 4711 4713 5082 5210 5338 5442 5811 5941 6191 6439 6566 6683 6817 6920 7181 7314 7544 7783 8040 8041 8164 8299 8417 8545 8666 8668 8812 8950 8951 9079...

result:

ok good solution

Test #269:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBB...

output:

YES
45 89 124 163 211 288 374 411 469 509 510 565 607 654 697 698 754 807 853 904 984 985 1040 1090 1137 1231 1288 1289 1342 1387 1423 1475 1529 1572 1619 1660 1714 1768 1824 1921 1922 2055 2057 2101 2149 2188 2229 2279 2317 2361 2402 2403 2452 2494 2543 2646 2703 2752 2753 2792 2844 2899 2938 2976 ...

result:

ok good solution

Test #270:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAA...

output:

YES
89 193 297 476 576 761 860 957 1053 1158 1247 1349 1351 1526 1608 1808 1907 2098 2193 2195 2296 2392 2471 2566 2567 2658 2743 2823 2906 3005 3114 3286 3381 3580 3680 3839 3939 4305 4398 4490 4684 4780 4849 4851 5018 5019 5207 5395 5490 5587 5689 5788 5969 6064 6151 6241 6342 6533 6804 6806 6912 ...

result:

ok good solution

Test #271:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
304 575 1133 1675 1947 2218 2220 2776 3313 3589 3865 4160 4432 4717 4978 5234 5503 5775 6054 6871 7128 7392 8187 8440 8983 9276 9527 9811 10074 10613 10875 11153 11410 11687 11688 12001 12803 12804 13066 13068 13357 13358 13612 13614 13899 14162 14437 14725 14988 15253 15528 15797 15798 16083 16...

result:

ok good solution

Test #272:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAA...

output:

YES
26 52 72 105 135 162 189 223 247 297 358 385 423 452 454 482 510 543 662 681 709 711 744 795 824 848 879 900 923 1043 1100 1155 1157 1180 1257 1314 1344 1417 1441 1463 1505 1537 1538 1566 1640 1677 1794 1880 1905 1929 1951 1972 2012 2086 2106 2135 2137 2164 2195 2219 2248 2305 2336 2364 2389 242...

result:

ok good solution

Test #273:

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

input:

BBBBBBBBBBBBABBBBBBBAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAABBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBABBBBBAAAAAAAAAAAAAAABBBBBBBBBBBBBAAAAAAABBBBBBBAAAAAAAAAAA...

output:

YES
13 21 35 117 136 151 172 186 197 229 241 243 248 263 276 282 290 315 326 344 374 386 400 414 429 446 456 481 488 500 510 511 544 554 563 581 600 610 612 630 654 670 682 697 712 724 747 769 770 783 795 813 828 844 857 867 868 883 892 902 903 936 949 960 962 965 981 992 1047 1076 1102 1104 1142 11...

result:

ok good solution

Test #274:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
99 213 302 397 493 593 682 888 984 1161 1282 1396 1397 1495 1589 1795 1900 1983 2231 2426 2526 2625 2730 2820 2909 3009 3116 3218 3421 3423 3613 3718 3720 4035 4401 4501 4607 4708 4709 4900 5185 5186 5278 5482 5575 5660 5751 5956 6163 6249 6250 6422 6632 6725 6821 6915 7007 7111 7217 7218 7317 7...

result:

ok good solution

Test #275:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
140 268 390 518 1054 1200 1325 1473 1892 2052 2178 2421 2552 2682 2824 2825 2955 3072 3204 3205 3348 3734 3735 3876 4035 4155 4454 4598 4739 4864 4995 4997 5740 6000 6001 6149 6151 6268 6398 6655 6657 6926 7172 7290 7578 7713 7831 7991 8129 8130 8272 8400 8540 8685 8686 8821 8980 9115 9237 9373 ...

result:

ok good solution

Test #276:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
149 309 770 772 1109 1264 1429 1582 1742 1909 2072 2245 2567 2725 2883 2884 3050 3212 3391 3566 3739 3910 4072 4420 4582 4908 4910 5080 5082 5396 5568 5737 5739 5890 5891 6250 6564 6746 7759 7760 7939 8257 8420 8598 8929 9095 9275 9277 9466 9782 9955 10131 10132 10592 10730 10923 11092 11437 116...

result:

ok good solution

Test #277:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
114 268 398 508 641 764 890 1117 1118 1363 1494 1631 1876 2013 2136 2248 2364 2492 2607 2859 2991 3108 3235 3488 3602 3876 3999 4243 4494 4622 5037 5175 5177 5687 5688 5807 5809 5918 6058 6424 6551 6695 6932 7058 7151 7153 7400 7520 7756 7890 8012 8128 8234 8348 8472 8600 8861 8985 9130 9393 952...

result:

ok good solution

Test #278:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
53 161 162 220 260 321 371 423 467 631 682 735 737 791 846 922 974 1100 1154 1198 1238 1317 1378 1494 1549 1604 1663 1726 1780 1832 1883 1982 2045 2104 2154 2272 2321 2323 2439 2487 2544 2598 2599 2710 2754 2818 2930 3024 3250 3312 3349 3406 3497 3594 3641 3695 3744 3800 3855 3857 3966 4073 4122...

result:

ok good solution

Test #279:

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

input:

BBBBBBBBBBBBBABBBAAAAAABBBBBBAAAABAAAAAAAABBBBAAAAAAAABBBBBBABBBABBBBBBBBBAAAAAAAAABAAAABAAAAABAAAABBBBBBBBBBBBB
BBBAABBAABAABBAABABABBB

output:

YES
13 15 17 23 30 34 43 47 54 60 61 65 74 84 87 88 89 94 95 99 110 111 112 

result:

ok good solution

Test #280:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
68 69 105 147 183 300 337 366 367 403 450 479 516 553 620 662 708 735 764 836 873 933 1039 1077 1079 1104 1143 1204 1241 1265 1304 1335 1379 1406 1441 1485 1555 1557 1590 1592 1629 1673 1707 1742 1785 1815 1846 1878 1880 1924 1960 1997 2041 2042 2125 2159 2196 2275 2307 2339 2370 2403 2441 2464 ...

result:

ok good solution

Test #281:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
93 174 260 333 412 572 656 887 961 1045 1186 1268 1270 1338 1415 1507 1591 1593 1661 1755 1839 1920 1997 2146 2301 2380 2541 2543 2624 2626 2731 2732 2822 2909 2911 2989 3076 3140 3320 3490 3655 3734 3960 3962 4038 4115 4203 4569 4844 4845 4933 5025 5100 5183 5185 5343 5417 5418 5511 5596 5682 5...

result:

ok good solution

Test #282:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
131 267 397 529 653 805 927 1056 1186 1320 1596 1873 1875 2123 2373 2374 2520 2658 2659 2798 3062 3196 3315 3451 3572 3574 3719 3862 3863 3991 4150 4277 4524 4625 4760 4893 5019 5151 5276 5534 5661 5662 5794 5904 6033 6164 6292 6562 6967 7734 7981 7983 8117 8237 8371 8500 9046 9199 9339 9478 947...

result:

ok good solution

Test #283:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
228 329 435 436 537 630 859 860 1299 1526 1636 1638 1848 1949 2059 2060 2167 2281 2478 2662 2753 2755 2872 2988 3079 3184 3286 3398 3496 3729 3834 3943 4051 4161 4380 4760 4880 4981 5082 5206 5319 5407 5513 5619 5823 5926 6252 6588 6590 6931 7042 7147 7149 7266 7391 7622 7839 7958 8071 8162 8268...

result:

ok good solution

Test #284:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
995 1922 2928 3955 4932 5910 7891 7892 9850 10900 12785 13793 14767 15779 17703 17704 18640 18641 20654 21689 25621 26586 27614 28651 28652 29696 36638 36639 37624 39564 39565 39566 39567 39568 39569 39570 41519 41520 42517 42518 43463 43464 43465 44419 46421 46422 47421 50312 51273 51274 52188 ...

result:

ok good solution

Test #285:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
85 127 167 261 318 375 420 463 514 554 610 824 925 961 963 1056 1104 1151 1153 1245 1283 1382 1384 1436 1438 1487 1582 1622 1623 1666 1668 1715 1803 1805 1851 1892 1976 2020 2066 2205 2344 2462 2515 2573 2617 2618 2700 2737 2783 2822 2924 2972 3049 3098 3140 3142 3195 3243 3280 3282 3321 3463 34...

result:

ok good solution

Test #286:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAA...

output:

YES
37 68 115 157 237 238 290 337 369 417 459 495 531 564 607 646 694 748 795 917 957 1019 1064 1104 1105 1152 1199 1243 1329 1381 1427 1518 1519 1562 1602 1643 1742 1787 1880 1979 2024 2026 2072 2120 2166 2168 2215 2216 2258 2309 2337 2339 2381 2431 2476 2526 2528 2579 2656 2693 2694 2737 2831 2833...

result:

ok good solution

Test #287:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
82 226 473 617 691 692 764 826 977 1033 1102 1153 1218 1288 1356 1420 1700 1816 1898 2059 2133 2206 2279 2503 2505 2586 2640 2641 2699 2701 2775 2979 3053 3116 3184 3309 3375 3426 3514 3582 3649 3724 3783 3846 3935 4014 4083 4220 4359 4361 4421 4490 4567 4649 4720 4778 4835 4926 4991 5046 5117 5...

result:

ok good solution

Test #288:

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

input:

AAAAAAABBBBBBBAAABBBBBBAAAAAAAAAAAAAAAAAABBBBBBAAAAAAAAAAABBBBABBBBBBBBBBAAAAAAAAAAAAAAAABBBBABBBABBBBAAABBBBBBBBAAAAABBBBBBAAAAAAAAABBBBBBBBBBBBBBBBAABAAAABBBBBBAABBBBBBBBBBBBBABBABBBBABBBBBBBBBBBBBABBBBBBAAAABAAAAABBBBBAAAABAAAAAAAAAAAABBBBBBAAABABBBBBAABAAAABAAAAAAABBBBBBBBBBAAAAAAAAAAAAAAAAAAABB...

output:

YES
7 15 17 24 41 48 59 63 74 89 94 97 99 103 105 114 118 124 134 150 151 153 156 162 165 177 179 180 182 185 186 200 207 211 216 222 226 239 244 248 250 255 257 262 269 279 299 303 312 317 318 327 330 332 337 347 352 360 370 380 389 394 399 405 410 417 425 428 434 439 440 447 460 468 490 491 496 50...

result:

ok good solution

Test #289:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
664 3484 4215 4913 4914 5586 6277 7642 7643 8349 9728 10436 11134 11827 12496 12498 13170 13848 14538 14539 15223 16559 17214 17925 18634 19323 20681 20682 21355 22007 22708 23436 23438 24148 24851 25508 26190 26191 26886 27540 28245 28913 29606 30307 32358 32360 33025 33756 34401 35062 37194 39...

result:

ok good solution

Test #290:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
275 526 1076 1323 1584 2411 2663 2917 3180 3706 3983 3985 4234 4484 4925 5194 5457 6232 6477 6700 6927 7222 7475 7694 7931 8630 8887 9146 9148 9392 9645 9646 9893 10696 10994 11250 11767 12029 12262 12521 12786 13562 13564 13813 14082 14605 15127 15671 16176 16428 16709 17445 17689 17951 18731 1...

result:

ok good solution

Test #291:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
98 196 306 403 511 627 906 1002 1102 1209 1321 1423 1530 1628 1630 1712 1818 1912 2007 2097 2182 2391 2492 2690 2900 3020 3124 3208 3335 3437 3523 3632 3744 3852 3854 3956 4151 4238 4342 4627 4842 4951 5054 5147 5332 5434 5534 5827 6253 6356 6469 6679 6787 6871 7089 7184 7392 7746 7848 7850 7960...

result:

ok good solution

Test #292:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
7591 22817 22818 45813 45814 60887 60888 60889 

result:

ok good solution

Test #293:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
55 110 172 224 274 327 433 497 498 549 601 659 715 767 826 947 948 1001 1137 1138 1201 1248 1306 1359 1417 1476 1531 1594 1659 1718 1768 1833 1881 1944 2045 2159 2227 2340 2450 2498 2555 2605 2652 2653 2701 2805 2854 2967 3019 3079 3185 3235 3237 3288 3351 3412 3413 3470 3521 3578 3636 3688 3743...

result:

ok good solution

Test #294:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
95 205 313 418 529 730 952 1030 1120 1122 1328 1426 1505 1629 1819 1919 2020 2215 2448 2543 2733 2834 2934 3036 3038 3316 3504 3597 3772 3969 4178 4510 4512 4619 4816 5231 5341 5441 5833 6044 6046 6136 6327 6419 6538 6745 6864 6970 7182 7285 7411 7522 7736 7821 7822 7918 8229 8328 8330 8519 8706...

result:

ok good solution

Test #295:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
427 2105 2543 2981 4216 4672 5094 5489 6369 6799 7250 7251 7675 8923 9330 9772 10194 10196 10609 10611 11008 11863 12278 12705 13517 15218 15647 16076 16942 17348 18222 18638 18639 19065 19516 20390 21155 21959 21960 22377 22812 23694 23696 24519 25380 25794 26254 26675 27092 27526 28780 28781 2...

result:

ok good solution

Test #296:

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

input:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

output:

YES
75 315 378 462 531 590 591 659 736 824 968 1122 1283 1361 1502 1740 1817 1818 1958 2113 2180 2258 2339 2498 2584 2821 2889 2959 3039 3105 3107 3191 3353 3415 3416 3629 3755 3903 4043 4214 4431 4505 4506 4592 4735 4881 4963 5021 5022 5095 5096 5181 5262 5406 5565 5633 5714 5770 5830 5832 5982 605...

result:

ok good solution

Test #297:

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

input:

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

output:

YES
3095 4069 5088 6081 6083 8162 9174 9175 10155 12177 14253 15262 16280 17346 18404 19467 20502 21528 22562 23639 23640 24678 25749 26779 26781 27784 28779 28780 29814 30835 31882 32848 33878 34871 35878 37963 37964 38972 39962 40973 41990 43018 45070 47086 47087 47088 

result:

ok good solution