QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#245928#4669. Genetic ModificationslingyingWA 267ms977276kbC++141.3kb2023-11-10 14:40:442023-11-10 14:40:44

Judging History

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

  • [2023-11-10 14:40:44]
  • 评测
  • 测评结果:WA
  • 用时:267ms
  • 内存:977276kb
  • [2023-11-10 14:40:44]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;

const int N=1e5+5,M=8e4+5;

int n,m;
int sum[N],L[N];
char s[N],t[N];
bitset<M> tmp,base;
bitset<M> f[N],g[2];

bool check(int l,int r)
{
	if(l>r)return 1;
	else return sum[r]-sum[l-1]==0||sum[r]-sum[l-1]==(r-l+1);
}

int main()
{
	for(int i=0;i<M;i++)base[i]=0;
	scanf("%s%s",s+1,t+1);
	n=strlen(s+1);
	s[++n]='A';
	m=strlen(t+1);
	if(m>80000)return puts("NO"),0;
	for(int i=1;i<=n;i++)sum[i]=s[i]-'A';
	for(int i=1;i<=n;i++)sum[i]+=sum[i-1];
	for(int i=1;i<=m;i++)g[0][i]=t[i]=='A';
	for(int i=1;i<=m;i++)g[1][i]=t[i]=='B';
	g[0][++m]=1;
	f[0][0]=1;
	int lst=-1;
	for(int i=1;i<=n;i++)
	{
		int l=1,r=i-1;
		while(l<r)
		{
			int mid=l+r>>1;
			if(check(mid,i-1))r=mid;
			else l=mid+1;
		}
		L[i]=l-1;
		if(l-1==lst)f[i]=tmp;
		else
		{
			tmp&=base;
			for(int j=l-1;j<i;j++)tmp|=f[j];
			f[i]=tmp;
			lst=l-1;
		}
		f[i]<<=1;
		f[i]&=g[s[i]-'A'];
		tmp|=f[i];
		//for(int j=1;j<=m;j++)cout<<i<<"   ---   "<<j<<"   ---   "<<f[i][j]<<endl;
	}
	if(!f[n][m])return puts("NO"),0;
	puts("YES");
	m--;
	int now=n;
	vector<int> vt;
	for(int t=m;t>=1;t--)
	{
		int p;
		for(int j=now-1;j>=L[now];j--)
			if(f[j][t]){p=j;break;}
		vt.push_back(p);
		now=p;
	}
	reverse(vt.begin(),vt.end());
	for(int x:vt)cout<<x<<' ';
	return 0;
}

/*
0001101101
0110
*/

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

BBAAABBAAABAAA
BAAB

output:

YES
2 5 8 11 

result:

ok good solution

Test #2:

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

input:

ABABABABAB
ABAB

output:

NO

result:

ok no solution

Test #3:

score: 0
Accepted
time: 71ms
memory: 485592kb

input:

BBAAAAABBAAAAAABBABAABBBBBAABBBAAABABBABABBBAAABBAAAABBBBBABAABBBAABBBBBBBABBABABBAAAABBAAAABAAAABBABAAAAAAABBBBAAAAAABAABABBAAAAABBBBAABABABAAAAABBBABABBAABABBBBAABAABBBBBABBABABBAAABBAAAABBBABBABAAAABBBAABAAABBBAAAAAAAAAAAAABABBAABBBBABABAABBBBABAABBAAABABBBBAAAAAAAABBAAAABBABABABBBAAABAABBABBAAAA...

output:

NO

result:

ok no solution

Test #4:

score: 0
Accepted
time: 31ms
memory: 132776kb

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: 160ms
memory: 906112kb

input:

BAABBBBBBAAABABABAAAAABAABBAAABBAABBBAABABBBABBABBBABBBBABAABAAAAABBBBBBBABABABAABABAABAABBBBBBABABABABBABBBBAABAABBAAABABBAAAAAAABBAAAAAAAABAAABABBAAABABABBBABAAABBBAABAABBABBBBBBBBBABBBABBBABBAABAABBABABBBBAAAABABAABAABABBABBABBBBBAABABABBBBBABAABBABABAABBABAABABBBBABABBBBBBABBBABABBAAABBAAABBABBA...

output:

NO

result:

ok no solution

Test #6:

score: 0
Accepted
time: 195ms
memory: 958168kb

input:

BBAABBAAABBBBAAABABBBABBBAABABAABBBABABBBAABBBBBBABBBAABABBBAAAAABABBABAABBAABABAABBAAABBBABAABBBAABAABABABBBBAABBBBBBBBBBBABBABABABBABBAAAAAAABAABABAABBABBABABBBBBAABBABBAABAABBBABBABBAABBBAAABBAAABABBBBBAAAABBAAABBAABABBABAABBBBAABBBAAAAAABBBAAAAABBBAAAABAABAAABBBAAABABBBABBBBBBBBAABABBABBBABAABAA...

output:

NO

result:

ok no solution

Test #7:

score: 0
Accepted
time: 27ms
memory: 141660kb

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: 160ms
memory: 957364kb

input:

AABABBAAAAABBAAAAABBBAAAAABBAABBBBBABBABABBAAAABAAABAABAAABBABBABBABAABBBBBBBAABABBBBBAAABABABABBBAABABABAAAAABBAABAABAABABABABBAABBBAABAABBAAAABBBBBBBBABBBBABAAAABAABBABABAAABABABBBAAABAAAABBBAAABBBAAABABBBAAABBBAAABBBBABAABAAABABAABABBAAAABBBAAABBBAABAAABABABBBBAABBABABBBBAAABAABBBBABBAABBBAAAABAA...

output:

NO

result:

ok no solution

Test #9:

score: 0
Accepted
time: 161ms
memory: 708908kb

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: 171ms
memory: 826868kb

input:

BABBABBABBBAAABABBBBAAAABBBABBBAABBAAAAABBBBABBBAABAAAAAABAABAABABABBABABBBBBBBAAABAABABBBBABBAABBAAAABBBAAABAABBBBAABABBABBABBABAAAAABBABABBABBABBAABABBABBBBBAAAABABABAABAAABABBBAABBAAABAABBBBABAABBBBBBABBABAABBAAABBBBBBAABABABABAAABAABBAABAABABAABBBBBBBBABABABBBABABBBABABAAAAABBBBBAAAAAAABBBBABABA...

output:

NO

result:

ok no solution

Test #11:

score: 0
Accepted
time: 87ms
memory: 492456kb

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: 20ms
memory: 95312kb

input:

BAABBAABBBAABBAABAABABABBABBABABBAAAAABBBBBBABBABAAABBAAAAABBBABABABBABBBAAABABAABBABABAABAABBBAABBAAAABBBBABBBBBBBBBABAABBABAAABAAAABBABAABABBBBBBBABBAAAAAABABABBBABABBBABABABABBAAAAAAAABABBABBBABABBBBABAAABBBBBABBAAABAABABBBAABABABBBBAABBBBBABABBBBABABBAAABABAABABAAAABABBABAAAAABBBABAAABABABAABAAA...

output:

NO

result:

ok no solution

Test #13:

score: 0
Accepted
time: 138ms
memory: 793060kb

input:

BBAAAAABBBBBABAAAABABAAABBBABBBAABAAABAAABABAABBABAABABBBBBABABABAAAABABAAABABABBAABBABBBBBAABBABBABBABABBBAAABABBBBBBBBBBABBBBBABAAAABBABBAABBBBBAABAAABBAABABBBBBAAAAABAABABAAAAAAABBBBBAABBBBAABABAAABABABAABBAAABAABBAAABBBABAABAABAABBAABBABBABAABABBABBBABABAAABBABBBBAAABAAABBBBBBABABBBBBBAAAABAABAB...

output:

NO

result:

ok no solution

Test #14:

score: 0
Accepted
time: 55ms
memory: 277452kb

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: 192ms
memory: 947196kb

input:

BBBABABABBBABAABAAAABBAABABBAABAABBBBAAAAABABBABABBBBBABABBBBABBBABBBBBABBBAABABAABAABBBBBBABAAABAABAABAABBBBBBBBBBAABABAABBAAABBAABBBBBBABBAABBBAAAABBBBAAAABAAAABBBAAAABAAABBBBAABABAAAAAABABAABAAAAABBBBBBAAABAABABBABBBAAABABBBAABBBBBBBBAAABABABBABABAABBBABAABAAAABABBBBBBBAAABAABBBBBBBAAABABABBBAAAA...

output:

NO

result:

ok no solution

Test #16:

score: 0
Accepted
time: 183ms
memory: 907124kb

input:

BABAAABAAABABBAAAAABBBABAABBABABABBBBBABABAABBAABAABAAAAAABABBBABABAABBBABAABBAABBBABBBAAAAAABBABAAAAAABAABABABBBBABABBABBBBBBBBBBBBBBAAAABAAABBBBBBBABBABBBAABBBBBBBAAAAABABBBAABAABABABBBBAAAABAAAABBABABBBABBABBABBBAAABBBABBBABBABBAABABAAABBAAABAAAAABAAAABABAABBABAAAAABAAAAABBABBBABBABBAAABABAAABAAA...

output:

NO

result:

ok no solution

Test #17:

score: 0
Accepted
time: 72ms
memory: 533772kb

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: 115ms
memory: 532668kb

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: 167ms
memory: 839080kb

input:

BAABABBAAAAABAABBABBBBBBBBABBABABABAABABAABAABBBAAAABAABBAAABBBBBABABAABBBBAAAABAAABBBAAABABBAAABBAAABBBBABBBBBABABABBBABBBAAAABBABBAABAAABBBABAAAAABABAAABABAABBBAAABAABAABABAAAAAABBBABABBBBBBBABAAAAAABAAABAAAAABBABAABBBABBBBAABAABAABAABBBBAAABBABAABBAABBAABBAABBABBAAAABBBABABBBAAAAAAABAABBAAAAABBAB...

output:

NO

result:

ok no solution

Test #20:

score: 0
Accepted
time: 147ms
memory: 796236kb

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: 156ms
memory: 839384kb

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: 123ms
memory: 807196kb

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: 99ms
memory: 518612kb

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: 84ms
memory: 489028kb

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: 68ms
memory: 345348kb

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: 179ms
memory: 961340kb

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: 139ms
memory: 615984kb

input:

BAAAABBBBBBBBAAAABAAABAABABBBBBBABABAAAABBABABABABBBBBBBBBAAAABABAAABBBAABAAABABAABAABABBABABBAAAABAABBBBABAAABAAAAABBABBBAABABBBABABABAAABBAABBABABBABABBBABBBBBABBBABBAABAAABAABBABBBABBAAABAABBBBABABBBABAABABBABABBBBBBAAAABAAABBBAAABBBBAABAAABBBAAABABBBBAAABABABAAAABAAABBABBABABABBABBBAABAABABAAAAA...

output:

NO

result:

ok no solution

Test #28:

score: 0
Accepted
time: 67ms
memory: 384972kb

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: 80ms
memory: 453060kb

input:

BBAABAABBBBAAAAAAAAABABABBAAAABAAAAAAAAABBABABBBBBABBAAABBABBAABBBBBBBBAABBBBABBBABBBBABAABABAABAABABAABBABABAABAAAABAABBABAABBAABAAABABBBBBBBAABAABBABABBAABABAABABBBBAABABABABAAAABAAAABABBAABBBBAABAABABBABBAAABAABBABABBBBABAAABAABAABBBAAAABAAAAAAAAAAAAABBAABABBBBABBABBAABBABBAABBAABBBABABBBABBAAAAA...

output:

NO

result:

ok no solution

Test #30:

score: 0
Accepted
time: 107ms
memory: 669948kb

input:

AABAABBAAABBAABBAAABABBBAABAABAAAABBBAAABABABBBBAAABBBBBBBABBABAABBAAABBBAABABABABABABABAAAAABBABABBBABAAABBAABBBBABBABABBBBBBABBABAABBABBABBBABBBBABABAABBAAABAABBBABBABBAAAAAAABBBAAABBBABBAABBBAABAABBABAABBAAAAABAABBBBABAABABBBAAABBBABBABAAABABAABABABAAAABAAAAAAABABBBAAABAABBBBAAABBAAABAAABBAAABAAB...

output:

NO

result:

ok no solution

Test #31:

score: 0
Accepted
time: 46ms
memory: 216948kb

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: 21ms
memory: 62912kb

input:

ABBABABBBBBABAAAABAAABABBABAAABABAABBBBABABABBBBAABAAABABBAABAAAABABAAABBABAAAABABBBBAAAABAABABABAABABBAABABBBAAABBAAABABABAABBABAABAAABAABBABBBABBBBBBABABABBBBBBAAAABBBAAAABABBBAAAAABABBBABBAAABAABAAAAAAABABABBBBABBAAAAABAAABBABAABAAABAABBAABABAAABBABBBBAAAAABBBBBBABAABABAAAABBBBBABBABAAAAABABABAAB...

output:

NO

result:

ok no solution

Test #33:

score: 0
Accepted
time: 51ms
memory: 291708kb

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: 128ms
memory: 729008kb

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: 28ms
memory: 161808kb

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: 143ms
memory: 606404kb

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: 16ms
memory: 94104kb

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: 132ms
memory: 767532kb

input:

AABBBBBAABABAABBBBBBAABBABABBABBBABBBAAAAABABBBBBBBAAABBBBBBABABABBBBBABABABABBABABBBAABABBBAABABBABBBBBABABBBAABBBBBAAAABABBBBBABBABBBBAABABBBBABABABAAAAAABBBBAABABABBABAAAAABAABBBABBAABBBAAABBAAAABABBBABAABABAABABABBAAAAAABBBAABBABBAABABAAABABABABBABBABAABBBBBABBABAABAAABAABAAABABBBBAAAABABBBAAABA...

output:

NO

result:

ok no solution

Test #39:

score: 0
Accepted
time: 92ms
memory: 564520kb

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: 44ms
memory: 209900kb

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: 152ms
memory: 693156kb

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: 119ms
memory: 636204kb

input:

AABAAAAAAABAABBBAAAAABAABBAABBBAAABBBBBAABABAAAAAAABAABBAABAAABBBABBBBBAAABABAABBABBAAABBABABBBBBABAAAABAABBAAABABBBAABBABAABABABABABABBAAABBBAAABBABAABAABABBAABABBABABAAABBBABBBBBAAABBAABBAAAAAABAAAAAAABBBABBBAABAABABBBABBABAAABAAAABABBBBABAABABBBBBBAAABABABABBBAABAABABAABABAABBAABBAABBAABBBAABABBA...

output:

NO

result:

ok no solution

Test #43:

score: 0
Accepted
time: 99ms
memory: 567916kb

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: 119ms
memory: 654140kb

input:

ABAAAAABBAABBAAAABBBAAAAABABABBAABBBBBABBBABBBAABBAABBABBAAAABBAABBAABBBABABABAAAAAAAABBAAABAAAABBABBBBABBBAABAAAAAABBBBAAABABABABAAABABBBBBBBBABBAABBAAAABBBBAAAAAAABBAAABAAAAAAABAAABBBABABABBAAABABABAAAAABBAABABABBBBAABBABBABAAABBABAAABAABBABABAAABAABBBAAAABBABAAABAABBBBABBAABBBBABBAABBABAAABABBBAB...

output:

NO

result:

ok no solution

Test #45:

score: 0
Accepted
time: 84ms
memory: 631944kb

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: 115ms
memory: 657248kb

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: 127ms
memory: 823920kb

input:

ABAAAAABBBBBABBBBAABBAABBAAABBBBABABABABABAABABBABBBBBABBAABBAABBAAAAAAAABBABAAABBAAAABABBBBAAAAAABAAAABBBABAABABAAAABAABAAAABABAABAABBABBBAAAABABABBAABBABBAAABABBAAABBBBBAABBBABABBBBAAAAABBAAAAAABBABABAAAABBBBAABBBBAABABABAABBBABBBAAAAABBBBBAABBABBABAAABBABABAABABBABBBBBABBAAAAAABBBBAAAAAAAAABAABAB...

output:

NO

result:

ok no solution

Test #48:

score: 0
Accepted
time: 42ms
memory: 190032kb

input:

BBBAABABBABBABABBBAAAABAAAABABBBBBBBBABAABBAAAAAABBBAABABAABBBABABAABBBAABBBBABABBBABBBAABBBBBABBABBBABAABBABBAABBBABBABBBABBBBAABBBABAABBABABBBBAAABABBAAAAAAAABABAAABBAAAABAAAABAABAABBABABBBBAAABAABAAAAAABABABAAABAAAAABBBBBAABBBBBBBABAABBABABBBBBBAAAAAABBAABAAAABBBAAAAAABABAAABBBAABABBABABAABBBABBA...

output:

NO

result:

ok no solution

Test #49:

score: 0
Accepted
time: 167ms
memory: 807352kb

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: 9ms
memory: 47920kb

input:

ABABAABAABAABBABBBBBBBBBBAABBBAAABBAABBABBBBBBBABBABABAABAAAABBBBBBBBAABBAAAABAABABABABAABAAAAABAABAAABBBBAABBABBAAAABAAABAABBAAABABAABBBBABAAAABBAABABABABAAAABAAABAAABAAABBBBBAABBBABBBBAAAABABABABBBBAAABBBABBBBAABBBABAAAABBBBBAAAABABAAABABAAABAABBBBBABABBBBABBABBBABBABBBAAAABAAABAABBBBAABABABAABABA...

output:

NO

result:

ok no solution

Test #51:

score: 0
Accepted
time: 35ms
memory: 179200kb

input:

ABAABBBBABABBAABAAAABAABAABAAAAAABBBAAABBBBABAABBAAABBBABBABBBBBABABBBBBBAAAABABAAABABAAABAAABBAAAAABABAABBAABBAAABBBABABBBABAAAAAABAABBABBBABAABAABABBABAAAAABBBAAAABBAAAABABAABAABBAABBBAABBAAABAAAAAABBAAABBBBBABBABAAABABABBBBAAAABBBABBBBBBABABBBAABABAAAABABBABABBBBABAABBBBAAAAAAABBBAAABBAABAAAAAAAA...

output:

NO

result:

ok no solution

Test #52:

score: 0
Accepted
time: 92ms
memory: 491368kb

input:

ABBABABABBABABBABBABBBAAAABAAAAABAABBAABABBBBBAABBBAABAAABBAAABABBBAAABBBAABBBBBBBBAAABBBBBABABBBABBABBBBAAAABBABABAABBAAAABBABBABBAAABBBBBBBBABBBBABABABAAAAABABBBABAABBABABABBBBAABBAAAABABBAABAABBBBBAAAAABABAAAAABBABBAABABABAABBBBAAAAABBABBABAABABBAABABBABAAABBBABAABAAABABABAABABBBBAABBBABAABABABBB...

output:

NO

result:

ok no solution

Test #53:

score: 0
Accepted
time: 96ms
memory: 357988kb

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: 95ms
memory: 565292kb

input:

ABBBABABABABABBBBBBBABBBBAABBBABBABAAABABBBABAAAABAABBABBABBABBBBBBBAAAAABBBAAAABBABBBAABBBABBAABAABBAAAABABAABBAABABAABBAAAABAAABAAAAAAAAABBAABBBBBBAABBBAAABABBAAAAABAABBBBBBABBAAABAABABAABAAABAAABBBBAAABBAAAABBAAAABAABABAAAABABBBABBBAAABABAABBABBAABBBABBAABABBAAABBABBBABAAABAAAAABBBAABAABBBAAABBAB...

output:

NO

result:

ok no solution

Test #55:

score: 0
Accepted
time: 26ms
memory: 154384kb

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: 56ms
memory: 295428kb

input:

BBBAABBBAABBBBBAAABBABBAABBBAAABBBABBABABABABABBBAABABBABBBBAAABBAABBBAAABAABBAABABAABBBBBAABBAABAAABBAAAABAAABAAAAAAAABBABAAABAABBAABABABABAABBABAABABABABBBBAAABABABBBBAABBBBAAAAABBBBBABAABAABBABAABBABBBAAAAABBBBBBBAABBAABBAAAAAAAABAABABABBAABBBBABBABABBBABBABBBABBBBBAAABBBAABBBABAAAABABBBBAAAAABAB...

output:

NO

result:

ok no solution

Test #57:

score: 0
Accepted
time: 120ms
memory: 510388kb

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: 92ms
memory: 473396kb

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: 211ms
memory: 959520kb

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: 69ms
memory: 329216kb

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: 11ms
memory: 78060kb

input:

BAABBAAAAABBAABBBAAAABABBABAABAABBBBABABAAABABBAAAABABBABABABBABBAAAAAABBAABAABBBAABABAAAABBAABBBABAAABABABAAAAAABAAAAABBAABABABBABBAABBAABABBABABBAAAABAAAABAAAABBAAAABBABBABAAAABBBBABBBABAABBABBBBABBBABABBABBBBBBAAAABBBBBABBBABAABAAAABBBBBBAABBABABBBAABAABBBBABAABBBBAAABABABABBAABBABBBBABBBBBBAAABA...

output:

NO

result:

ok no solution

Test #62:

score: 0
Accepted
time: 267ms
memory: 931188kb

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: 119ms
memory: 517424kb

input:

BAAAAABBABABBBAABBBBBBABABBAAABAABABABBBBAAABBBBABBBBBAAABBBABBABAABABAAAABABBAABBAAABAAABBABBABAAAABBBBBAABAAABABABAAABAABABABBBAABBAABBAABBABABBAAABBBABAABAAABAAAABAAABABAABABAABBBBBBABBBBABBBBBAAABABBBBBBBBBAAABAABBBBBAABBABBBBABBAABBBAABBAABABABAAAABBAAAAAABBBBAABABAABABBBBBAABABAABAABBBABBBBAAA...

output:

NO

result:

ok no solution

Test #64:

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

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: 12ms
memory: 51304kb

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: 223ms
memory: 798280kb

input:

BABBBAAAABBBABBBBBBABABBBBBABBBABAAABAAAABBAABABABABABBBBBAABABBAABABABBBBBBABABABBAABAAABBBABABBBAABBBAAAABBABAABBABAABBABBBABBABAABABBABBBABAAAAABAABAABBBBBABABABBBABBABAAAABBBABAAAABABBBABAAABBABAAAABBBBBBBABABBAAABAABBABBBAAAAAABBAAAABAAABBAABABAAABAABBABABBBAABABABBABBBAABBBBABABBBAAABABABAABBB...

output:

NO

result:

ok no solution

Test #67:

score: 0
Accepted
time: 43ms
memory: 212876kb

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: 100ms
memory: 574292kb

input:

AAABBBAABAAAABABBBAABBAAAABBBAABABBAABAAABAABABAABBBBBBBBAAABBAABBAABAAAABBBBBAABBBBAAABBBBBBAABAABAAAAABBBBABBBAABBABABBABAABBABBBAAAAAABBAAAAAABABBAAAAAABABBABABBBABAABBBBABBBBBAAAAAABBABBABBAAAAAABBBBABAAABAABBABBBABAAAAAAAAAABAABBAAAAABBAABBABBABBAAABBBBBBBBBBAABABBBBBBBAABABAAAABBABBABBBBBBABAB...

output:

NO

result:

ok no solution

Test #69:

score: 0
Accepted
time: 43ms
memory: 195528kb

input:

BBBABBAAAABBBBABBABBBBABBAAABBBAAABABBBABBBBAABABABBABABAABBBBBBBBAABBBAAAAABABBBABBAAAAAABBBABABAABAABABAABAABABAABBAABBBABAAAAABBBBABAABAABBABAABBAABBABBAAABABBBBBABBABAAABABBBBBABAABBABBAAABBBBABBAABAAAAAAABABABABABBBABABBBABABBBABBAABABAABAABBAAABAAABBBBBBBABABAABAAAABABBBBAAABBBBAABABABBABBABAB...

output:

NO

result:

ok no solution

Test #70:

score: 0
Accepted
time: 176ms
memory: 823836kb

input:

AAAABBBBBABBBBBBBBABABAAAAAAABABBAABABBAAAAABABAABABBBABBBBBBAABBAABBBBBABBBBAAABAAAABBBABBBABBAAABBAAABBBBBBBBBBABBBAAAABBABBBBBBAAABBAAAAABBABAAAABABABABABBABBAABBABAAABAAAAABBBBAABBAAAAAAAABBAABBABAABBBAAABABABBBAAAABAABBBABBBAABAABBBABBBBABBABABABBAABABBABAABABABBBBBBABBABBAABBAAAABBBBBABABAABBA...

output:

NO

result:

ok no solution

Test #71:

score: 0
Accepted
time: 143ms
memory: 782600kb

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: 103ms
memory: 539236kb

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: 164ms
memory: 828900kb

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: 11ms
memory: 76932kb

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: 86ms
memory: 404452kb

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: 147ms
memory: 641288kb

input:

BAABBBBAABAABBBBABBABAAAAABAABABBBABBABBBBBABABABAAAABAAABAABAAABBABBABABABAAABBBAAABAAABBABAABBABBAAAABAAABBBBBBBAAAAABBAABAABBABBABABBAABAABAABBABBAAABAABBAAAAAAAABBABBBAAAAABBBAABAABBABABBAAABABBBBBBBAAABAAABBABBBBBABAAABBABABAABAAAABBBAAABBBAABBBBBABBBBBBAAAABBBAABBAAABABBBAAABAAABBBBBBAAAAABBAB...

output:

NO

result:

ok no solution

Test #77:

score: 0
Accepted
time: 171ms
memory: 853928kb

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: 156ms
memory: 778732kb

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: 223ms
memory: 926132kb

input:

BABBAABAABABAAABAABAABAAAABBABABBABABBBAAAAABABABBBBAAABABBBAAAAABBABBABBBBBABBBABAAAAAAAAAABABABBAAABAABBAAAABABBBBBBAABAABAABBAABAABBABBBBBABAABABBAAAABBBBBBAABAABAABBAABBABBBBABBAABBBBABBBAAAAAABABBBAAABBAAABABBABAABAABBABAABBBBABABABAAABBBAAABBBABAAABBABABABABABAAAABBBBABAABABBBAABAAAAAABABBABBA...

output:

NO

result:

ok no solution

Test #80:

score: 0
Accepted
time: 55ms
memory: 267232kb

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: 115ms
memory: 683596kb

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: 171ms
memory: 882148kb

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: 136ms
memory: 719596kb

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: 128ms
memory: 673452kb

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: 72ms
memory: 279900kb

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: 132ms
memory: 706020kb

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: 26ms
memory: 133012kb

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: 19ms
memory: 176248kb

input:

AABABABABAAABABABAABBBAABBBBAAAABBAAAABBBBAABABBAABBBABBBAAABBAAAABAABABBAABBBAABBBBBBBABBBBAAABAABBBAABAAABBABBBBAAABBABBABAAAABAABABAABABABBAAAAABBABBBAABBBAABBAABBBAAAABAAAAAABAABAABAAABABBAAAAAAAAABABAABABBBAABBBAAABBABAAABBAAABBBAAAABBBBBABAABAABBAAABBBABBBBBABABBAABBABBAABABBABAABABAABABABBBBB...

output:

NO

result:

ok no solution

Test #89:

score: 0
Accepted
time: 88ms
memory: 569200kb

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: 11ms
memory: 45676kb

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: 187ms
memory: 835744kb

input:

ABBAABBBBAABABAAABABBAAABAAABBAAABABAABAABBBAABAABBBAAAAABBAABBAABAABBBBAAABAABABABABAABAABABBABAAABABABBABBBBABAAABBBBBAAAABBAABAAABAAABABBAAABBABBBAABABAAAABBBBBAAAAABBBAAAAAABAAABBBAAABBABBABBBABBBBABBBABBABABBABABAAAAABAAAABAABBBABAAAABBBAAAABAAAABAAABBABAAABAABBAABAABBAABAABABAAABBBAAABBBAABABB...

output:

NO

result:

ok no solution

Test #92:

score: 0
Accepted
time: 176ms
memory: 780772kb

input:

BBBBBBAABBABAAABAAAAABAABBBABBABABAAABAAABBABAABAABABAABABAABBABBBBBBBBBBBBBBABBBABBBAAAABBBBABBBAAAAAAAABAAABABABBABBBAABBBABABAAAABAABAAAAABABBBBAAABBABAAAABAABAABBBBBBBBABBBBAABABBABBBAAAAAAABBAAAABABBAAAAAAABBAAABBAAAAAABBBAABBBBABBABBAAABBBBAABABAABAAAAABABBAABABBBBBBBAAABAABABBBBBBBBABBABABBAB...

output:

NO

result:

ok no solution

Test #93:

score: 0
Accepted
time: 84ms
memory: 514020kb

input:

BAABBBAABAABAABABBABABBBABABAABBAABAABBABABAAABBBBBBAAABBBAABBABABBAABAABAABBBBABABBBBBBAAABBBBAAAAAAABBBAAAAAAABABABBAAABABABABABAABBABBBABBBABBBBABBBBABBABBABABAAAAAAAAABBBBAABBBABAABBAABABAABBBBBAAAAAABBBBAABAAAAABAAABBABBBBBABAABBABBBAABBBABAAAABBAABBABABABBBAABBBAABBAAAAABBBABBBBBBBABABABABABAB...

output:

NO

result:

ok no solution

Test #94:

score: 0
Accepted
time: 66ms
memory: 299756kb

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: 48ms
memory: 350292kb

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: 75ms
memory: 509460kb

input:

AABAAAAAAAAABABBAAAAABABABAAABAABAAABBAABBAABAABBAAAABAABBBABBBBABBABBAAABBAABABAAABBABABBBBBBBAABBABAABBBBAABABBABBBABABBAABABABBBBAABBABABABAAAABBAAAAAAABBABABBAABAAABBBAAABAAAAAABBAAAABAAABABBBABAAAABBBBBABABBABAABBAAABBAAABBAAABBAABBABABAAAAABAABABABBBABBAABABBBBABBABABAAAAAAAAABAAABAABBBABAAAAA...

output:

NO

result:

ok no solution

Test #97:

score: 0
Accepted
time: 116ms
memory: 749376kb

input:

ABABABBABBABAAAAAAAABBABBABBAAAABBBBBABBAAAABBBAABAABBAAABABBBBBBBABAABBBABBABABBBAAAABABABBBBBAAAAABBBAAABBBBBBBAABBBBAAABAAAABABBABAAAAABAAABBAAAAAAAAAABABBBAABBBBBBBAABABBAAAABABABBBBAAABABABAAAAABABABBBAAAABBAABBABAAABABABAABABABBAABABBBAAAAABBBBBAABBAABBBBBBABAABAAAAABABAAABABBAAAABAABBBAABAAAB...

output:

NO

result:

ok no solution

Test #98:

score: 0
Accepted
time: 184ms
memory: 878916kb

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: 56ms
memory: 272752kb

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: 71ms
memory: 420976kb

input:

BAAABAABBBAABABAABAABBBAABBABBBBAABAAABBBABAABABABABBBBBBABAAABAAAAABABBAABAABABBBBBABBAAAABAAAABBBAAABAAAABABBBBAAABBBABAAAAAAAAABBBABBAAABBABBBBBBABBAABAABAABAAABAAAABAAAAAABBAABAABBBAAABBBBBAAAABBBABBAABAABBABBABAABABABBAABBAABAABABAAABABAABBBBBABAAAABBBBBAABBAAABBBBAAAABBBAAAAABABABABBABAAABABBB...

output:

NO

result:

ok no solution

Test #101:

score: 0
Accepted
time: 15ms
memory: 91392kb

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: 189ms
memory: 977276kb

input:

AABBAABBBAAABBBBBABAABBAABBBAABAAABBABBABAABBBBAABAAAABABBABABABBABBABAAABABAABBABBABBBABBBABBBABBAAAABBBBBAABABBABBBAABABBABBABBBABBBAABABBBAABBABBAABABBABABBAABBAAAABABABBABABAAAAAABABBABAABABABBABAABABABABBABBBAAABABBBABBABBBBABAAAABABBBBBABBAABBAABABBAAABABBABAAAABBABBBBAABBBBABBBBABBABAABAABBBA...

output:

NO

result:

ok no solution

Test #103:

score: 0
Accepted
time: 120ms
memory: 565252kb

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: 108ms
memory: 572236kb

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: 51ms
memory: 289388kb

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: 64ms
memory: 281964kb

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: 52ms
memory: 329816kb

input:

AAABBBBABBBBAABBBBBBBABAABABABAAABABABAABBAAAABABBAABBABBAABBBBAABBBBBBABBBAAAAABAABBABBBBAABBBABBBBBBABAAAAAABBABBAABBABAABAABBAAABABAABBBBBABABAAAABAAABBABBAABBBABBAABABABABBBAABAAABAABBABABAABABAAAABBBAABAABBAAAAAABBBBABBBBABBAABBBBBBABBABAAAAABBBBBABBBBBBAAABAAAAAABABABBAABABBBABBBBABBABABABAAAA...

output:

NO

result:

ok no solution

Test #108:

score: 0
Accepted
time: 29ms
memory: 148696kb

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: 132ms
memory: 675988kb

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: 140ms
memory: 581684kb

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: 135ms
memory: 661868kb

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: 160ms
memory: 774208kb

input:

BABBAABBABBBABBBBBBAABABBABABAAABBABABBABAAAABBAAAABBAABAAABABAABABABABBBAAABBBBABAAABAABAAAAABABABBAAAABABAABBABBBAABBBBABBBAAAAAAABBABAAABBBAABBABBABBBBBAAAABBBBABBAAABAABBAABBBBAABBBBAABABAABAAAAABABAAABBAABAAABABBAAABBAAABAABBAABAAAABBBBAAAAAABBAABABBBBAAAAABBABAABBBAAAABBAABAAABBBBAAABBAAABBBBA...

output:

NO

result:

ok no solution

Test #113:

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

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: 44ms
memory: 194580kb

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: 88ms
memory: 382376kb

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: 94ms
memory: 535744kb

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: 124ms
memory: 601200kb

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: 79ms
memory: 418912kb

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: 83ms
memory: 355252kb

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: 147ms
memory: 964756kb

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: 8ms
memory: 24868kb

input:

AABAAABBABBABBAABBBBAABBBBAAAABBABBAABBBBAAABAABAABBAABABABABAABABAABAABABBBAABAAAABAAABAABAAAAAABBAABBABAAAABBAAABABBAABABABBBBBBABBAAAAAABAABBBBBAABBBAAAABBABBBABAABBBBAABABABBABABAAAAABABBAABBBBBABABBBBAABAAABBABAABBBBBABBBAAABBAAAAABBABBABABBABBAABBBAAAAABABBABAABAABAAAABBAABBAABBABBBAABAAABBBBB...

output:

NO

result:

ok no solution

Test #122:

score: 0
Accepted
time: 176ms
memory: 917948kb

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: 91ms
memory: 483712kb

input:

ABAABBBABBBAAAABBABABBBBAAAAABBABBAABBAABAAABBABAABBAAABBBAABABBABBABBBABBBBBAAAAABABAABBABAABAAABBABAABAAABABAABBBABABAABBAABBABBAAABBBABABBAAABAABBABAABAAAABABAABAAABABBAABAAAABBBABBBABBAAABAABBABBABBBBBBAABBBBBAABBBBBABBBAAABABBBBAAABBABABABABBBAABAABBBABABAABBBBAABAABABBBBAABBBBBBBBBABBABBABBABB...

output:

NO

result:

ok no solution

Test #124:

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

input:

AAAAAAABAABABAABABABAABAABAAAAABBABABAAAABBBBBBBBABABABBBBABBBBAAABBABBABABBBBBAABABBABAAAAAAAABAABBAABBAABABAAABABBABBBAABBAAABABAAAABBAAABABBBBBABBAABBBBABABBBBABBBBAAAAABBAAAAABABABBBAAABABABABBABBAAAABBABBAAAABBBAAABBABABABAABAAABABABAABBABABBBBBBABBABBAABBAABBBBBABABBAABABBABBBBABBBBBABAABBBAAA...

output:

NO

result:

ok no solution

Test #125:

score: 0
Accepted
time: 20ms
memory: 180980kb

input:

ABABBBABBBBBABBBBBBABBABBBBBAABAABABBAAABABBABAABBABABABABBBBBABABBAABBBBABBBABABAAABBAABABBABABBABBAAAABBABBBBABBBBBABABABAAAABBABBABBBBAAAABBABABBAABBAABBAABAAABBAABBBBBBABAABABABBAAAABBABAABBAAABAABBBAABAAAAAAAABBABABABBBAABAAAAABAAABABBBBBAABABBABBBBABABBABBBABBABAAABABBABABAAABAABAAAABAABAAAAAB...

output:

NO

result:

ok no solution

Test #126:

score: 0
Accepted
time: 77ms
memory: 437712kb

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: 159ms
memory: 903904kb

input:

BBAAABBABABABBBBBBBBABBBAABABBBBBABBABBBBBABABBBAABBAAAAAAAABABABBAAABBBABBBBBBBABBBABABBABBBABBBBBAABBAABBAAAABBAAABABBAABBBABAAABBAAABABAAAAAAAAAABAAABBAABBAABBABBAABABABBBAAAABBABAAABAABBBBBABBAAAABABBAABBBABABAAABAABAAAABBBAAAAABABAABAABBAABABBAAAAABBABBBBAABAABBBAABAAAABBBABABBBBABABBBAABABBAAA...

output:

NO

result:

ok no solution

Test #128:

score: 0
Accepted
time: 152ms
memory: 945996kb

input:

ABABBBABBBBABBBBBABABBAABAAABBAAAABABAAABBAAAABAAABABBBAAABBABAAABBABAAABABABBBBBABBABBABBABABABBBBBBABBABBBAAAAABBBAAAABAAAABAABABABAAAAABBABBAABBABBAABAABBBAAAAAAABAABBBBAABABBAABAAABBAABAAABABBABABABABABABAAAABABAAABBBBAAAAABAAABBABBABBABABAAABAAAAAAAAAAAABABABBBBAAAAABBBBABBBABAAAAAAABBABABBAABB...

output:

NO

result:

ok no solution

Test #129:

score: 0
Accepted
time: 65ms
memory: 294096kb

input:

BBBAAABABABAAABBBAAAABABBAAABABAAAAABABBAABAABABBBAAABAAAAABBAAAABBAAABBBABBBAABAABABABABBBBAAAABBAABAAABBBBBBABABAABBAABABBAABBABBBABBBAAABBABAAAAABBAABBABABABABAAABAABAAABBBBBABBABABBABBABBAABAABBBABBAAAABAABBAAABAAABBBABBBABABABAAABAAABBBABAABBBAABAAAABAAABBAAABAAAAABBBABABABAABABBAABBAAAABBABAAA...

output:

NO

result:

ok no solution

Test #130:

score: 0
Accepted
time: 79ms
memory: 434008kb

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: 150ms
memory: 659784kb

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: 159ms
memory: 768524kb

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: 59ms
memory: 291764kb

input:

BABBABABAAABAAAABBABABBBBBABBBBABBBABBBBBBAABBBAAAABABAABBAABBBBABABABBBBBAABABBAAAAAABAABBBBBAAAAABABBBAAAABABBBBABBBBABAAAABBAAAAABAABABBAABAABAABBBBABAAAABBAAAABAAABAABBBABAABBBAABAAAAABBBBAABBBABBBBABBBABABAAABAABABABBABAAAAAAAAAABAAAABAAABBBBAAABBABBBBAAABABBBBABBABBBAABBABBABAAABABBBBABBAAAAAB...

output:

NO

result:

ok no solution

Test #134:

score: 0
Accepted
time: 152ms
memory: 735896kb

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: 73ms
memory: 343960kb

input:

BBABABBAABBAAAABABBBABBBABAABAAABABBAAAABBBABAAABBAABBBBBBAABABAABAAABBBBBABABBAABBBBAABAAABBBAABBBBAABBBABAABAAAABBBAABBBAABBAAABABBBBBAABBAABBBAAABABAAABAAAABBAABBBBAABAABBABABAABAABBAAABABABAABBBABAAABAAAABAABABBBABAAAAAABABAAABABBBAABABBBBABBBABABBABABBAABBAABBBABABAAAAABBBBBABABABBBBBBABBBBABBB...

output:

NO

result:

ok no solution

Test #136:

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

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: 59ms
memory: 404824kb

input:

BBAAABABAABAAAAABBABABBABABABBAABABBBBAAABABAAABBBABAAAABBBBBBBBAAAABABBABAAAABAABABAAAABBBAABABBAAAABBAABBAAAAAABAABAAAAAAAABAAAAABAAABABAAABBABABBBBBBBAAABBBAABBBBBBABAABAAABBBAABAABBAAAAAABAAABBABBBABAAABBBABAAABBAABBAAAAABBBBBAAAAAABAABBAABABBBBBAAAABAAAAABBAAAAAAAABBBBAAABABAAABAABBBBBAABAAABAB...

output:

NO

result:

ok no solution

Test #138:

score: 0
Accepted
time: 18ms
memory: 138844kb

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: 44ms
memory: 281052kb

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: 179ms
memory: 870660kb

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: 112ms
memory: 490968kb

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: 12756kb

input:

BBABBBAABBABAABABABABBABABAABBABBABAABBAAAAABAABABAABBBBABBBAAABBABABABBBAAAABAABBABBBBABAAABAABBABABAABAABBABAAABBBABBBAAAAAABBABAAABBBBAAABABBBAAAABBBAABAAAAABBBAABBABBBAABABAAAABBBAABBBBBABBBAABBABAAAABABBABBBBBABABABABABBBAAAAAABAAABABABABAABAAABABBABABAABBABAABAABAAABABAABBBABBBAAABABAAAAABAABA...

output:

NO

result:

ok no solution

Test #143:

score: 0
Accepted
time: 143ms
memory: 671092kb

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: 200ms
memory: 840864kb

input:

BABAABABAAAAAAABBBBAABAAAAABABBABBBAABABBBBBBABBBAAAABBBBBABABABABAAAABBAAAABABBBBABBAABABBAABAABABBAAABAAAABBBBAABBAAABABABBAAABBABABBAAAAAAABABBABBABABBBBBBABABAABAAABABABABAABAAABBBAABBBBBBBABBAABABBAAAABBABAAAABBABAABABAABAABBBBBABAAABAABBABAABBABAAABAABABAAABBAAAAABAAABBABABBABABBABABBBBABBBBBB...

output:

NO

result:

ok no solution

Test #145:

score: 0
Accepted
time: 24ms
memory: 127896kb

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: 34ms
memory: 176404kb

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: 147ms
memory: 754648kb

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: 185ms
memory: 887828kb

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: 12ms
memory: 52092kb

input:

ABAAAABBBAABBAAAAABBABABAABBBAAAAABBAABBABBAABAAAABABAABBBBBBABABAABABABBABBBAABBABAABBAABBBAABBABBAAABBAABAABABABBAAABAABABBBBBBAAAAABAAAAAABABAAABABABBBABBBBAABABBBBBABABABABABABBBBABBBBBBAAABAABAAAAABBBBAAABBBBABBABBABBAAABABAABBBAAAAABBBBBBBBBAABAABABBABBAAABBBAAAABABBBBBABBBBAABABABAAABBBABABAB...

output:

NO

result:

ok no solution

Test #150:

score: 0
Accepted
time: 176ms
memory: 861236kb

input:

ABABBABAAAAABABBBAAAAABBAAAABAABBBBABBAAAABBBAABBABBAABBAAAAAABBAABBAAAABABABBBBAAAABABABABBABBBBABBBAAABABBAAABABABBBABBBBBBBABBBBAAABBABAABAAABAABBABBBBABBBBABBBBAABBBBAAABBAAAAAABABABAAAAAAABBBBABAAABABBAABBAAABABAABAABBAABBAAAAAABBBABAAABBABAAAABBBBBBBBBAABBABBABABBAAABABAABABAABBBBBBBBBABAAAAAA...

output:

NO

result:

ok no solution

Test #151:

score: 0
Accepted
time: 27ms
memory: 115244kb

input:

BAABAABAABBBAABABBAAAAAABAABBBBBAABAABAABABABABBBBABABBBBABAABABABAABAAAAABBBAAAAABBABBABBBBAAABBBBABABAAAABAAAABBBABAABAABAAABABBABBBBABABAAAABAAAAAAABAAABBBABBBBBBABBAAAAAAAABAAABAABBABABBABBAABAABBABAAAABABBBBABAAABBAAABABBAABBAABAABBABBABAABBBABBABABABAAAABBABABBABAAAABBABAABABBBBAABABABAAAABAAA...

output:

NO

result:

ok no solution

Test #152:

score: 0
Accepted
time: 15ms
memory: 89020kb

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: 24ms
memory: 99264kb

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: 112ms
memory: 426288kb

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: 79ms
memory: 406624kb

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: 69ms
memory: 297040kb

input:

AABAABBAAAABBBABBABBBAABBBBBAABBBBAAABAABABBAABBBBBAAAABBAAAABBABBAABBABABBBBBABABBABBABABBBBBBBABBAABBBBABBAABABAABAABAABAAAAABBBBAAAAAAAAABAAAAAAAABBAAAAAABAABBAABBBAABAABBBABBBBABBABABAABBAAABABAABBAABBAAABAABBABBABAAABBBBAABBBBBBAABABAAAAABABABAABBAABBAABABAABABABBBBBABAAAAABAABBABBBBAABAABAABAA...

output:

NO

result:

ok no solution

Test #157:

score: 0
Accepted
time: 144ms
memory: 743468kb

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: 139ms
memory: 696040kb

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: 47ms
memory: 252800kb

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: 60ms
memory: 417224kb

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: 95ms
memory: 496832kb

input:

ABBBAAAABBAAAAABBBABBBBBABBBBAABBABABAAAABAABBBBBBABABAABBBBBBBAABAAABAAAABBABABABBBABBBABBABABABABABABAAAABBAABABBABBBAAAABBAAAABBAAAAAAABBAAAAABBBBABBBABBABBBBBAABAAAAAABABBABABBAABAABAABABABAABAABABABABBBBBBAABAAAABABBABABBABABBAAAABABAAAABABBBAABAAABBABAAABAABABABBABBBBAAABBBABAABABBAAABABBAABAB...

output:

NO

result:

ok no solution

Test #162:

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

input:

AABAABBABABBBAABBABAABABBBBBBAABABBABBBBBBBAABBBAAAABBAABABAABABAAAABBBAABABABABBBBBBBBAAAAABBAAABBBBBAABBBAAAABABBAABAAAAAABABBAABABBBBBBBAABAAABAABBABBBAABABBABBAABBBAAABAAAAAABAAAAAAAABAABABABBBBABAABAAABAABBAABABBAABBBBBABAAABBBBBAAABBBABBABBAABBAABBBBBAAABABAABBBAABABBABAAAABBBBBAABABAABABAABBA...

output:

NO

result:

ok no solution

Test #163:

score: 0
Accepted
time: 77ms
memory: 384680kb

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: 196ms
memory: 789564kb

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: 121ms
memory: 519496kb

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: 4ms
memory: 55828kb

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: 99ms
memory: 503272kb

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: 48ms
memory: 339432kb

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: 143ms
memory: 648056kb

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: 47ms
memory: 216468kb

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: 14ms
memory: 75832kb

input:

ABAAAABABBABBBABABBABAAAAABAABABBBABBBBAAABBBBAAABBBBABBBAAABABBBAAABABABBBBBBAAAAABAABBAAAABAAAAABBABBBAAAAAABBAABAABABAABBBAABBABBAAABBBABAAABABABBABAABBBAAAABAAAABBBABAABBABBABBABABBAAAABBAABABBBAAABBAABABBBABBBAABABBBABAAABBBABBAABAAABABBBBAABAABABAAABAAABAABAAAABABBABBBBBBABBAABBBAAAAABBAAABBAA...

output:

NO

result:

ok no solution

Test #172:

score: 0
Accepted
time: 83ms
memory: 528804kb

input:

ABBBAABAAAABBBABAAAABBAABABABBABBBBBABABABAABBBAABBAAAABBAAAAAABBABBABBBBABBBBAAABAABBBBBBAABABBBBAAABAAAABAABBAAAAABBAABABABBBAAABBABBABAABBABABBBBBABAABBBBBABBBABABABAABBABBABAAAAABAABABABAAAAABBABBABAABBAABBBABABBAAAAAABABABBBAABBAABAAABABAAAAAAABBBAABABBBAABBBBBBBAABBABAAAAABABBABAAABBAABAAABAAA...

output:

NO

result:

ok no solution

Test #173:

score: -100
Wrong Answer
time: 1ms
memory: 5496kb

input:

ABABBAAABAABBAAAABABBABBAAAABABBBABBABBBBBBABBBAAAAAAAABABBAABBBBABBAABAAAABAABBABBAABABAAABBBBBBAAAABAAAABABABBAABBAAABBBBAABBAAABBAAABABBAAABABAAABBBAAAAABABBABBABAAAABABAABBAAAABBBBABBABABABABBAABABBAAAABABABAAABABBABABAABBBAABBABAABBABBAABBABBABABABABBBBABABAABABBAABABAABBBAABBAABABBBBBAABABBAAB...

output:

NO

result:

wrong answer you didn't find a solution but jury did