QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#246101#4669. Genetic ModificationslingyingWA 220ms1036724kbC++141.5kb2023-11-10 16:14:022023-11-10 16:14:02

Judging History

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

  • [2023-11-10 16:14:02]
  • 评测
  • 测评结果:WA
  • 用时:220ms
  • 内存:1036724kb
  • [2023-11-10 16:14:02]
  • 提交

answer

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

const int N=1e5+5,M=8e4+5e3+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);
	m=strlen(t+1);
	if(n==m)
	{
		for(int i=1;i<=n;i++)
			if(s[i]!=t[i])
				return puts("NO"),0;
		puts("YES");
		for(int i=1;i<=n;i++)cout<<i<<' ';
		return 0;
	}
	s[++n]='A';
	if(m>85000)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
*/

詳細信息

Test #1:

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

input:

BBAAABBAAABAAA
BAAB

output:

YES
2 5 8 11 

result:

ok good solution

Test #2:

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

input:

ABABABABAB
ABAB

output:

NO

result:

ok no solution

Test #3:

score: 0
Accepted
time: 97ms
memory: 516068kb

input:

BBAAAAABBAAAAAABBABAABBBBBAABBBAAABABBABABBBAAABBAAAABBBBBABAABBBAABBBBBBBABBABABBAAAABBAAAABAAAABBABAAAAAAABBBBAAAAAABAABABBAAAAABBBBAABABABAAAAABBBABABBAABABBBBAABAABBBBBABBABABBAAABBAAAABBBABBABAAAABBBAABAAABBBAAAAAAAAAAAAABABBAABBBBABABAABBBBABAABBAAABABBBBAAAAAAAABBAAAABBABABABBBAAABAABBABBAAAA...

output:

NO

result:

ok no solution

Test #4:

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

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: 163ms
memory: 962356kb

input:

BAABBBBBBAAABABABAAAAABAABBAAABBAABBBAABABBBABBABBBABBBBABAABAAAAABBBBBBBABABABAABABAABAABBBBBBABABABABBABBBBAABAABBAAABABBAAAAAAABBAAAAAAAABAAABABBAAABABABBBABAAABBBAABAABBABBBBBBBBBABBBABBBABBAABAABBABABBBBAAAABABAABAABABBABBABBBBBAABABABBBBBABAABBABABAABBABAABABBBBABABBBBBBABBBABABBAAABBAAABBABBA...

output:

NO

result:

ok no solution

Test #6:

score: 0
Accepted
time: 211ms
memory: 1018856kb

input:

BBAABBAAABBBBAAABABBBABBBAABABAABBBABABBBAABBBBBBABBBAABABBBAAAAABABBABAABBAABABAABBAAABBBABAABBBAABAABABABBBBAABBBBBBBBBBBABBABABABBABBAAAAAAABAABABAABBABBABABBBBBAABBABBAABAABBBABBABBAABBBAAABBAAABABBBBBAAAABBAAABBAABABBABAABBBBAABBBAAAAAABBBAAAAABBBAAAABAABAAABBBAAABABBBABBBBBBBBAABABBABBBABAABAA...

output:

NO

result:

ok no solution

Test #7:

score: 0
Accepted
time: 40ms
memory: 147984kb

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: 168ms
memory: 1018352kb

input:

AABABBAAAAABBAAAAABBBAAAAABBAABBBBBABBABABBAAAABAAABAABAAABBABBABBABAABBBBBBBAABABBBBBAAABABABABBBAABABABAAAAABBAABAABAABABABABBAABBBAABAABBAAAABBBBBBBBABBBBABAAAABAABBABABAAABABABBBAAABAAAABBBAAABBBAAABABBBAAABBBAAABBBBABAABAAABABAABABBAAAABBBAAABBBAABAAABABABBBBAABBABABBBBAAABAABBBBABBAABBBAAAABAA...

output:

NO

result:

ok no solution

Test #9:

score: 0
Accepted
time: 128ms
memory: 752804kb

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: 151ms
memory: 876536kb

input:

BABBABBABBBAAABABBBBAAAABBBABBBAABBAAAAABBBBABBBAABAAAAAABAABAABABABBABABBBBBBBAAABAABABBBBABBAABBAAAABBBAAABAABBBBAABABBABBABBABAAAAABBABABBABBABBAABABBABBBBBAAAABABABAABAAABABBBAABBAAABAABBBBABAABBBBBBABBABAABBAAABBBBBBAABABABABAAABAABBAABAABABAABBBBBBBBABABABBBABABBBABABAAAAABBBBBAAAAAAABBBBABABA...

output:

NO

result:

ok no solution

Test #11:

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

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

input:

BAABBAABBBAABBAABAABABABBABBABABBAAAAABBBBBBABBABAAABBAAAAABBBABABABBABBBAAABABAABBABABAABAABBBAABBAAAABBBBABBBBBBBBBABAABBABAAABAAAABBABAABABBBBBBBABBAAAAAABABABBBABABBBABABABABBAAAAAAAABABBABBBABABBBBABAAABBBBBABBAAABAABABBBAABABABBBBAABBBBBABABBBBABABBAAABABAABABAAAABABBABAAAAABBBABAAABABABAABAAA...

output:

NO

result:

ok no solution

Test #13:

score: 0
Accepted
time: 139ms
memory: 842400kb

input:

BBAAAAABBBBBABAAAABABAAABBBABBBAABAAABAAABABAABBABAABABBBBBABABABAAAABABAAABABABBAABBABBBBBAABBABBABBABABBBAAABABBBBBBBBBBABBBBBABAAAABBABBAABBBBBAABAAABBAABABBBBBAAAAABAABABAAAAAAABBBBBAABBBBAABABAAABABABAABBAAABAABBAAABBBABAABAABAABBAABBABBABAABABBABBBABABAAABBABBBBAAABAAABBBBBBABABBBBBBAAAABAABAB...

output:

NO

result:

ok no solution

Test #14:

score: 0
Accepted
time: 47ms
memory: 296704kb

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: 183ms
memory: 1008004kb

input:

BBBABABABBBABAABAAAABBAABABBAABAABBBBAAAAABABBABABBBBBABABBBBABBBABBBBBABBBAABABAABAABBBBBBABAAABAABAABAABBBBBBBBBBAABABAABBAAABBAABBBBBBABBAABBBAAAABBBBAAAABAAAABBBAAAABAAABBBBAABABAAAAAABABAABAAAAABBBBBBAAABAABABBABBBAAABABBBAABBBBBBBBAAABABABBABABAABBBABAABAAAABABBBBBBBAAABAABBBBBBBAAABABABBBAAAA...

output:

NO

result:

ok no solution

Test #16:

score: 0
Accepted
time: 192ms
memory: 965388kb

input:

BABAAABAAABABBAAAAABBBABAABBABABABBBBBABABAABBAABAABAAAAAABABBBABABAABBBABAABBAABBBABBBAAAAAABBABAAAAAABAABABABBBBABABBABBBBBBBBBBBBBBAAAABAAABBBBBBBABBABBBAABBBBBBBAAAAABABBBAABAABABABBBBAAAABAAAABBABABBBABBABBABBBAAABBBABBBABBABBAABABAAABBAAABAAAAABAAAABABAABBABAAAAABAAAAABBABBBABBABBAAABABAAABAAA...

output:

NO

result:

ok no solution

Test #17:

score: 0
Accepted
time: 141ms
memory: 568428kb

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

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: 170ms
memory: 889552kb

input:

BAABABBAAAAABAABBABBBBBBBBABBABABABAABABAABAABBBAAAABAABBAAABBBBBABABAABBBBAAAABAAABBBAAABABBAAABBAAABBBBABBBBBABABABBBABBBAAAABBABBAABAAABBBABAAAAABABAAABABAABBBAAABAABAABABAAAAAABBBABABBBBBBBABAAAAAABAAABAAAAABBABAABBBABBBBAABAABAABAABBBBAAABBABAABBAABBAABBAABBABBAAAABBBABABBBAAAAAAABAABBAAAAABBAB...

output:

NO

result:

ok no solution

Test #20:

score: 0
Accepted
time: 155ms
memory: 847704kb

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: 199ms
memory: 891084kb

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: 175ms
memory: 856004kb

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

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: 96ms
memory: 518996kb

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

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: 214ms
memory: 1021232kb

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

input:

BAAAABBBBBBBBAAAABAAABAABABBBBBBABABAAAABBABABABABBBBBBBBBAAAABABAAABBBAABAAABABAABAABABBABABBAAAABAABBBBABAAABAAAAABBABBBAABABBBABABABAAABBAABBABABBABABBBABBBBBABBBABBAABAAABAABBABBBABBAAABAABBBBABABBBABAABABBABABBBBBBAAAABAAABBBAAABBBBAABAAABBBAAABABBBBAAABABABAAAABAAABBABBABABABBABBBAABAABABAAAAA...

output:

NO

result:

ok no solution

Test #28:

score: 0
Accepted
time: 68ms
memory: 407084kb

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

input:

BBAABAABBBBAAAAAAAAABABABBAAAABAAAAAAAAABBABABBBBBABBAAABBABBAABBBBBBBBAABBBBABBBABBBBABAABABAABAABABAABBABABAABAAAABAABBABAABBAABAAABABBBBBBBAABAABBABABBAABABAABABBBBAABABABABAAAABAAAABABBAABBBBAABAABABBABBAAABAABBABABBBBABAAABAABAABBBAAAABAAAAAAAAAAAAABBAABABBBBABBABBAABBABBAABBAABBBABABBBABBAAAAA...

output:

NO

result:

ok no solution

Test #30:

score: 0
Accepted
time: 170ms
memory: 711696kb

input:

AABAABBAAABBAABBAAABABBBAABAABAAAABBBAAABABABBBBAAABBBBBBBABBABAABBAAABBBAABABABABABABABAAAAABBABABBBABAAABBAABBBBABBABABBBBBBABBABAABBABBABBBABBBBABABAABBAAABAABBBABBABBAAAAAAABBBAAABBBABBAABBBAABAABBABAABBAAAAABAABBBBABAABABBBAAABBBABBABAAABABAABABABAAAABAAAAAAABABBBAAABAABBBBAAABBAAABAAABBAAABAAB...

output:

NO

result:

ok no solution

Test #31:

score: 0
Accepted
time: 32ms
memory: 230028kb

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

input:

ABBABABBBBBABAAAABAAABABBABAAABABAABBBBABABABBBBAABAAABABBAABAAAABABAAABBABAAAABABBBBAAAABAABABABAABABBAABABBBAAABBAAABABABAABBABAABAAABAABBABBBABBBBBBABABABBBBBBAAAABBBAAAABABBBAAAAABABBBABBAAABAABAAAAAAABABABBBBABBAAAAABAAABBABAABAAABAABBAABABAAABBABBBBAAAAABBBBBBABAABABAAAABBBBBABBABAAAAABABABAAB...

output:

NO

result:

ok no solution

Test #33:

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

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

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: 23ms
memory: 173716kb

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

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

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

input:

AABBBBBAABABAABBBBBBAABBABABBABBBABBBAAAAABABBBBBBBAAABBBBBBABABABBBBBABABABABBABABBBAABABBBAABABBABBBBBABABBBAABBBBBAAAABABBBBBABBABBBBAABABBBBABABABAAAAAABBBBAABABABBABAAAAABAABBBABBAABBBAAABBAAAABABBBABAABABAABABABBAAAAAABBBAABBABBAABABAAABABABABBABBABAABBBBBABBABAABAAABAABAAABABBBBAAAABABBBAAABA...

output:

NO

result:

ok no solution

Test #39:

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

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

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

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

input:

AABAAAAAAABAABBBAAAAABAABBAABBBAAABBBBBAABABAAAAAAABAABBAABAAABBBABBBBBAAABABAABBABBAAABBABABBBBBABAAAABAABBAAABABBBAABBABAABABABABABABBAAABBBAAABBABAABAABABBAABABBABABAAABBBABBBBBAAABBAABBAAAAAABAAAAAAABBBABBBAABAABABBBABBABAAABAAAABABBBBABAABABBBBBBAAABABABABBBAABAABABAABABAABBAABBAABBAABBBAABABBA...

output:

NO

result:

ok no solution

Test #43:

score: 0
Accepted
time: 128ms
memory: 603044kb

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

input:

ABAAAAABBAABBAAAABBBAAAAABABABBAABBBBBABBBABBBAABBAABBABBAAAABBAABBAABBBABABABAAAAAAAABBAAABAAAABBABBBBABBBAABAAAAAABBBBAAABABABABAAABABBBBBBBBABBAABBAAAABBBBAAAAAAABBAAABAAAAAAABAAABBBABABABBAAABABABAAAAABBAABABABBBBAABBABBABAAABBABAAABAABBABABAAABAABBBAAAABBABAAABAABBBBABBAABBBBABBAABBABAAABABBBAB...

output:

NO

result:

ok no solution

Test #45:

score: 0
Accepted
time: 149ms
memory: 670920kb

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

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

input:

ABAAAAABBBBBABBBBAABBAABBAAABBBBABABABABABAABABBABBBBBABBAABBAABBAAAAAAAABBABAAABBAAAABABBBBAAAAAABAAAABBBABAABABAAAABAABAAAABABAABAABBABBBAAAABABABBAABBABBAAABABBAAABBBBBAABBBABABBBBAAAAABBAAAAAABBABABAAAABBBBAABBBBAABABABAABBBABBBAAAAABBBBBAABBABBABAAABBABABAABABBABBBBBABBAAAAAABBBBAAAAAAAAABAABAB...

output:

NO

result:

ok no solution

Test #48:

score: 0
Accepted
time: 45ms
memory: 203500kb

input:

BBBAABABBABBABABBBAAAABAAAABABBBBBBBBABAABBAAAAAABBBAABABAABBBABABAABBBAABBBBABABBBABBBAABBBBBABBABBBABAABBABBAABBBABBABBBABBBBAABBBABAABBABABBBBAAABABBAAAAAAAABABAAABBAAAABAAAABAABAABBABABBBBAAABAABAAAAAABABABAAABAAAAABBBBBAABBBBBBBABAABBABABBBBBBAAAAAABBAABAAAABBBAAAAAABABAAABBBAABABBABABAABBBABBA...

output:

NO

result:

ok no solution

Test #49:

score: 0
Accepted
time: 132ms
memory: 857468kb

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: 13ms
memory: 50968kb

input:

ABABAABAABAABBABBBBBBBBBBAABBBAAABBAABBABBBBBBBABBABABAABAAAABBBBBBBBAABBAAAABAABABABABAABAAAAABAABAAABBBBAABBABBAAAABAAABAABBAAABABAABBBBABAAAABBAABABABABAAAABAAABAAABAAABBBBBAABBBABBBBAAAABABABABBBBAAABBBABBBBAABBBABAAAABBBBBAAAABABAAABABAAABAABBBBBABABBBBABBABBBABBABBBAAAABAAABAABBBBAABABABAABABA...

output:

NO

result:

ok no solution

Test #51:

score: 0
Accepted
time: 57ms
memory: 188060kb

input:

ABAABBBBABABBAABAAAABAABAABAAAAAABBBAAABBBBABAABBAAABBBABBABBBBBABABBBBBBAAAABABAAABABAAABAAABBAAAAABABAABBAABBAAABBBABABBBABAAAAAABAABBABBBABAABAABABBABAAAAABBBAAAABBAAAABABAABAABBAABBBAABBAAABAAAAAABBAAABBBBBABBABAAABABABBBBAAAABBBABBBBBBABABBBAABABAAAABABBABABBBBABAABBBBAAAAAAABBBAAABBAABAAAAAAAA...

output:

NO

result:

ok no solution

Test #52:

score: 0
Accepted
time: 95ms
memory: 523632kb

input:

ABBABABABBABABBABBABBBAAAABAAAAABAABBAABABBBBBAABBBAABAAABBAAABABBBAAABBBAABBBBBBBBAAABBBBBABABBBABBABBBBAAAABBABABAABBAAAABBABBABBAAABBBBBBBBABBBBABABABAAAAABABBBABAABBABABABBBBAABBAAAABABBAABAABBBBBAAAAABABAAAAABBABBAABABABAABBBBAAAAABBABBABAABABBAABABBABAAABBBABAABAAABABABAABABBBBAABBBABAABABABBB...

output:

NO

result:

ok no solution

Test #53:

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

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: 120ms
memory: 598268kb

input:

ABBBABABABABABBBBBBBABBBBAABBBABBABAAABABBBABAAAABAABBABBABBABBBBBBBAAAAABBBAAAABBABBBAABBBABBAABAABBAAAABABAABBAABABAABBAAAABAAABAAAAAAAAABBAABBBBBBAABBBAAABABBAAAAABAABBBBBBABBAAABAABABAABAAABAAABBBBAAABBAAAABBAAAABAABABAAAABABBBABBBAAABABAABBABBAABBBABBAABABBAAABBABBBABAAABAAAAABBBAABAABBBAAABBAB...

output:

NO

result:

ok no solution

Test #55:

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

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: 67ms
memory: 311544kb

input:

BBBAABBBAABBBBBAAABBABBAABBBAAABBBABBABABABABABBBAABABBABBBBAAABBAABBBAAABAABBAABABAABBBBBAABBAABAAABBAAAABAAABAAAAAAAABBABAAABAABBAABABABABAABBABAABABABABBBBAAABABABBBBAABBBBAAAAABBBBBABAABAABBABAABBABBBAAAAABBBBBBBAABBAABBAAAAAAAABAABABABBAABBBBABBABABBBABBABBBABBBBBAAABBBAABBBABAAAABABBBBAAAAABAB...

output:

NO

result:

ok no solution

Test #57:

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

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

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: 207ms
memory: 1020732kb

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

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: 15ms
memory: 80408kb

input:

BAABBAAAAABBAABBBAAAABABBABAABAABBBBABABAAABABBAAAABABBABABABBABBAAAAAABBAABAABBBAABABAAAABBAABBBABAAABABABAAAAAABAAAAABBAABABABBABBAABBAABABBABABBAAAABAAAABAAAABBAAAABBABBABAAAABBBBABBBABAABBABBBBABBBABABBABBBBBBAAAABBBBBABBBABAABAAAABBBBBBAABBABABBBAABAABBBBABAABBBBAAABABABABBAABBABBBBABBBBBBAAABA...

output:

NO

result:

ok no solution

Test #62:

score: 0
Accepted
time: 201ms
memory: 990100kb

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: 111ms
memory: 549528kb

input:

BAAAAABBABABBBAABBBBBBABABBAAABAABABABBBBAAABBBBABBBBBAAABBBABBABAABABAAAABABBAABBAAABAAABBABBABAAAABBBBBAABAAABABABAAABAABABABBBAABBAABBAABBABABBAAABBBABAABAAABAAAABAAABABAABABAABBBBBBABBBBABBBBBAAABABBBBBBBBBAAABAABBBBBAABBABBBBABBAABBBAABBAABABABAAAABBAAAAAABBBBAABABAABABBBBBAABABAABAABBBABBBBAAA...

output:

NO

result:

ok no solution

Test #64:

score: 0
Accepted
time: 16ms
memory: 73320kb

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: 13ms
memory: 50336kb

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: 191ms
memory: 846060kb

input:

BABBBAAAABBBABBBBBBABABBBBBABBBABAAABAAAABBAABABABABABBBBBAABABBAABABABBBBBBABABABBAABAAABBBABABBBAABBBAAAABBABAABBABAABBABBBABBABAABABBABBBABAAAAABAABAABBBBBABABABBBABBABAAAABBBABAAAABABBBABAAABBABAAAABBBBBBBABABBAAABAABBABBBAAAAAABBAAAABAAABBAABABAAABAABBABABBBAABABABBABBBAABBBBABABBBAAABABABAABBB...

output:

NO

result:

ok no solution

Test #67:

score: 0
Accepted
time: 36ms
memory: 227640kb

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: 141ms
memory: 607688kb

input:

AAABBBAABAAAABABBBAABBAAAABBBAABABBAABAAABAABABAABBBBBBBBAAABBAABBAABAAAABBBBBAABBBBAAABBBBBBAABAABAAAAABBBBABBBAABBABABBABAABBABBBAAAAAABBAAAAAABABBAAAAAABABBABABBBABAABBBBABBBBBAAAAAABBABBABBAAAAAABBBBABAAABAABBABBBABAAAAAAAAAABAABBAAAAABBAABBABBABBAAABBBBBBBBBBAABABBBBBBBAABABAAAABBABBABBBBBBABAB...

output:

NO

result:

ok no solution

Test #69:

score: 0
Accepted
time: 52ms
memory: 209212kb

input:

BBBABBAAAABBBBABBABBBBABBAAABBBAAABABBBABBBBAABABABBABABAABBBBBBBBAABBBAAAAABABBBABBAAAAAABBBABABAABAABABAABAABABAABBAABBBABAAAAABBBBABAABAABBABAABBAABBABBAAABABBBBBABBABAAABABBBBBABAABBABBAAABBBBABBAABAAAAAAABABABABABBBABABBBABABBBABBAABABAABAABBAAABAAABBBBBBBABABAABAAAABABBBBAAABBBBAABABABBABBABAB...

output:

NO

result:

ok no solution

Test #70:

score: 0
Accepted
time: 135ms
memory: 873516kb

input:

AAAABBBBBABBBBBBBBABABAAAAAAABABBAABABBAAAAABABAABABBBABBBBBBAABBAABBBBBABBBBAAABAAAABBBABBBABBAAABBAAABBBBBBBBBBABBBAAAABBABBBBBBAAABBAAAAABBABAAAABABABABABBABBAABBABAAABAAAAABBBBAABBAAAAAAAABBAABBABAABBBAAABABABBBAAAABAABBBABBBAABAABBBABBBBABBABABABBAABABBABAABABABBBBBBABBABBAABBAAAABBBBBABABAABBA...

output:

NO

result:

ok no solution

Test #71:

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

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

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

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

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

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

input:

BAABBBBAABAABBBBABBABAAAAABAABABBBABBABBBBBABABABAAAABAAABAABAAABBABBABABABAAABBBAAABAAABBABAABBABBAAAABAAABBBBBBBAAAAABBAABAABBABBABABBAABAABAABBABBAAABAABBAAAAAAAABBABBBAAAAABBBAABAABBABABBAAABABBBBBBBAAABAAABBABBBBBABAAABBABABAABAAAABBBAAABBBAABBBBBABBBBBBAAAABBBAABBAAABABBBAAABAAABBBBBBAAAAABBAB...

output:

NO

result:

ok no solution

Test #77:

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

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

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: 208ms
memory: 983688kb

input:

BABBAABAABABAAABAABAABAAAABBABABBABABBBAAAAABABABBBBAAABABBBAAAAABBABBABBBBBABBBABAAAAAAAAAABABABBAAABAABBAAAABABBBBBBAABAABAABBAABAABBABBBBBABAABABBAAAABBBBBBAABAABAABBAABBABBBBABBAABBBBABBBAAAAAABABBBAAABBAAABABBABAABAABBABAABBBBABABABAAABBBAAABBBABAAABBABABABABABAAAABBBBABAABABBBAABAAAAAABABBABBA...

output:

NO

result:

ok no solution

Test #80:

score: 0
Accepted
time: 47ms
memory: 283300kb

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

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

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

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

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: 43ms
memory: 294976kb

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

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: 36ms
memory: 139052kb

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: 27ms
memory: 186848kb

input:

AABABABABAAABABABAABBBAABBBBAAAABBAAAABBBBAABABBAABBBABBBAAABBAAAABAABABBAABBBAABBBBBBBABBBBAAABAABBBAABAAABBABBBBAAABBABBABAAAABAABABAABABABBAAAAABBABBBAABBBAABBAABBBAAAABAAAAAABAABAABAAABABBAAAAAAAAABABAABABBBAABBBAAABBABAAABBAAABBBAAAABBBBBABAABAABBAAABBBABBBBBABABBAABBABBAABABBABAABABAABABABBBBB...

output:

NO

result:

ok no solution

Test #89:

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

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

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: 191ms
memory: 887584kb

input:

ABBAABBBBAABABAAABABBAAABAAABBAAABABAABAABBBAABAABBBAAAAABBAABBAABAABBBBAAABAABABABABAABAABABBABAAABABABBABBBBABAAABBBBBAAAABBAABAAABAAABABBAAABBABBBAABABAAAABBBBBAAAAABBBAAAAAABAAABBBAAABBABBABBBABBBBABBBABBABABBABABAAAAABAAAABAABBBABAAAABBBAAAABAAAABAAABBABAAABAABBAABAABBAABAABABAAABBBAAABBBAABABB...

output:

NO

result:

ok no solution

Test #92:

score: 0
Accepted
time: 168ms
memory: 829364kb

input:

BBBBBBAABBABAAABAAAAABAABBBABBABABAAABAAABBABAABAABABAABABAABBABBBBBBBBBBBBBBABBBABBBAAAABBBBABBBAAAAAAAABAAABABABBABBBAABBBABABAAAABAABAAAAABABBBBAAABBABAAAABAABAABBBBBBBBABBBBAABABBABBBAAAAAAABBAAAABABBAAAAAAABBAAABBAAAAAABBBAABBBBABBABBAAABBBBAABABAABAAAAABABBAABABBBBBBBAAABAABABBBBBBBBABBABABBAB...

output:

NO

result:

ok no solution

Test #93:

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

input:

BAABBBAABAABAABABBABABBBABABAABBAABAABBABABAAABBBBBBAAABBBAABBABABBAABAABAABBBBABABBBBBBAAABBBBAAAAAAABBBAAAAAAABABABBAAABABABABABAABBABBBABBBABBBBABBBBABBABBABABAAAAAAAAABBBBAABBBABAABBAABABAABBBBBAAAAAABBBBAABAAAAABAAABBABBBBBABAABBABBBAABBBABAAAABBAABBABABABBBAABBBAABBAAAAABBBABBBBBBBABABABABABAB...

output:

NO

result:

ok no solution

Test #94:

score: 0
Accepted
time: 47ms
memory: 318208kb

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: 89ms
memory: 371844kb

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

input:

AABAAAAAAAAABABBAAAAABABABAAABAABAAABBAABBAABAABBAAAABAABBBABBBBABBABBAAABBAABABAAABBABABBBBBBBAABBABAABBBBAABABBABBBABABBAABABABBBBAABBABABABAAAABBAAAAAAABBABABBAABAAABBBAAABAAAAAABBAAAABAAABABBBABAAAABBBBBABABBABAABBAAABBAAABBAAABBAABBABABAAAAABAABABABBBABBAABABBBBABBABABAAAAAAAAABAAABAABBBABAAAAA...

output:

NO

result:

ok no solution

Test #97:

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

input:

ABABABBABBABAAAAAAAABBABBABBAAAABBBBBABBAAAABBBAABAABBAAABABBBBBBBABAABBBABBABABBBAAAABABABBBBBAAAAABBBAAABBBBBBBAABBBBAAABAAAABABBABAAAAABAAABBAAAAAAAAAABABBBAABBBBBBBAABABBAAAABABABBBBAAABABABAAAAABABABBBAAAABBAABBABAAABABABAABABABBAABABBBAAAAABBBBBAABBAABBBBBBABAABAAAAABABAAABABBAAAABAABBBAABAAAB...

output:

NO

result:

ok no solution

Test #98:

score: 0
Accepted
time: 172ms
memory: 931656kb

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: 63ms
memory: 291540kb

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

input:

BAAABAABBBAABABAABAABBBAABBABBBBAABAAABBBABAABABABABBBBBBABAAABAAAAABABBAABAABABBBBBABBAAAABAAAABBBAAABAAAABABBBBAAABBBABAAAAAAAAABBBABBAAABBABBBBBBABBAABAABAABAAABAAAABAAAAAABBAABAABBBAAABBBBBAAAABBBABBAABAABBABBABAABABABBAABBAABAABABAAABABAABBBBBABAAAABBBBBAABBAAABBBBAAAABBBAAAAABABABABBABAAABABBB...

output:

NO

result:

ok no solution

Test #101:

score: 0
Accepted
time: 23ms
memory: 96068kb

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: 176ms
memory: 1036724kb

input:

AABBAABBBAAABBBBBABAABBAABBBAABAAABBABBABAABBBBAABAAAABABBABABABBABBABAAABABAABBABBABBBABBBABBBABBAAAABBBBBAABABBABBBAABABBABBABBBABBBAABABBBAABBABBAABABBABABBAABBAAAABABABBABABAAAAAABABBABAABABABBABAABABABABBABBBAAABABBBABBABBBBABAAAABABBBBBABBAABBAABABBAAABABBABAAAABBABBBBAABBBBABBBBABBABAABAABBBA...

output:

NO

result:

ok no solution

Test #103:

score: 0
Accepted
time: 132ms
memory: 599932kb

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

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

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: 63ms
memory: 299360kb

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

input:

AAABBBBABBBBAABBBBBBBABAABABABAAABABABAABBAAAABABBAABBABBAABBBBAABBBBBBABBBAAAAABAABBABBBBAABBBABBBBBBABAAAAAABBABBAABBABAABAABBAAABABAABBBBBABABAAAABAAABBABBAABBBABBAABABABABBBAABAAABAABBABABAABABAAAABBBAABAABBAAAAAABBBBABBBBABBAABBBBBBABBABAAAAABBBBBABBBBBBAAABAAAAAABABABBAABABBBABBBBABBABABABAAAA...

output:

NO

result:

ok no solution

Test #108:

score: 0
Accepted
time: 38ms
memory: 158000kb

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: 111ms
memory: 715832kb

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: 157ms
memory: 617688kb

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

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: 153ms
memory: 823880kb

input:

BABBAABBABBBABBBBBBAABABBABABAAABBABABBABAAAABBAAAABBAABAAABABAABABABABBBAAABBBBABAAABAABAAAAABABABBAAAABABAABBABBBAABBBBABBBAAAAAAABBABAAABBBAABBABBABBBBBAAAABBBBABBAAABAABBAABBBBAABBBBAABABAABAAAAABABAAABBAABAAABABBAAABBAAABAABBAABAAAABBBBAAAAAABBAABABBBBAAAAABBABAABBBAAAABBAABAAABBBBAAABBAAABBBBA...

output:

NO

result:

ok no solution

Test #113:

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

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: 40ms
memory: 206140kb

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: 101ms
memory: 405984kb

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

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

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

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

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: 215ms
memory: 1026092kb

input:

ABBBAABBBAABBBAABBBBBBABAAAABBABBAABBABBBBABAAAABAAAABAABBABAAABBBBAABABAAAAAAABABBABAAAABABAAAAAABABABABBAAABABBAABABABAAAAAABAAABBBBBBBAABABBBAABAABBABAABABBABAAABABBABABABABAABAAAABBBBAAABAABBBAAABBBBBABAABBBBBBABAAAABAAAABBBBAABAABABBABABAAABBBABAABBAABABAABABBBBAABBBBABBBAAABAAABABBABABBABAAAAA...

output:

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

result:

ok good solution

Test #121:

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

input:

AABAAABBABBABBAABBBBAABBBBAAAABBABBAABBBBAAABAABAABBAABABABABAABABAABAABABBBAABAAAABAAABAABAAAAAABBAABBABAAAABBAAABABBAABABABBBBBBABBAAAAAABAABBBBBAABBBAAAABBABBBABAABBBBAABABABBABABAAAAABABBAABBBBBABABBBBAABAAABBABAABBBBBABBBAAABBAAAAABBABBABABBABBAABBBAAAAABABBABAABAABAAAABBAABBAABBABBBAABAAABBBBB...

output:

NO

result:

ok no solution

Test #122:

score: 0
Accepted
time: 212ms
memory: 972964kb

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

input:

ABAABBBABBBAAAABBABABBBBAAAAABBABBAABBAABAAABBABAABBAAABBBAABABBABBABBBABBBBBAAAAABABAABBABAABAAABBABAABAAABABAABBBABABAABBAABBABBAAABBBABABBAAABAABBABAABAAAABABAABAAABABBAABAAAABBBABBBABBAAABAABBABBABBBBBBAABBBBBAABBBBBABBBAAABABBBBAAABBABABABABBBAABAABBBABABAABBBBAABAABABBBBAABBBBBBBBBABBABBABBABB...

output:

NO

result:

ok no solution

Test #124:

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

input:

AAAAAAABAABABAABABABAABAABAAAAABBABABAAAABBBBBBBBABABABBBBABBBBAAABBABBABABBBBBAABABBABAAAAAAAABAABBAABBAABABAAABABBABBBAABBAAABABAAAABBAAABABBBBBABBAABBBBABABBBBABBBBAAAAABBAAAAABABABBBAAABABABABBABBAAAABBABBAAAABBBAAABBABABABAABAAABABABAABBABABBBBBBABBABBAABBAABBBBBABABBAABABBABBBBABBBBBABAABBBAAA...

output:

NO

result:

ok no solution

Test #125:

score: 0
Accepted
time: 52ms
memory: 192084kb

input:

ABABBBABBBBBABBBBBBABBABBBBBAABAABABBAAABABBABAABBABABABABBBBBABABBAABBBBABBBABABAAABBAABABBABABBABBAAAABBABBBBABBBBBABABABAAAABBABBABBBBAAAABBABABBAABBAABBAABAAABBAABBBBBBABAABABABBAAAABBABAABBAAABAABBBAABAAAAAAAABBABABABBBAABAAAAABAAABABBBBBAABABBABBBBABABBABBBABBABAAABABBABABAAABAABAAAABAABAAAAAB...

output:

NO

result:

ok no solution

Test #126:

score: 0
Accepted
time: 85ms
memory: 464784kb

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: 176ms
memory: 958432kb

input:

BBAAABBABABABBBBBBBBABBBAABABBBBBABBABBBBBABABBBAABBAAAAAAAABABABBAAABBBABBBBBBBABBBABABBABBBABBBBBAABBAABBAAAABBAAABABBAABBBABAAABBAAABABAAAAAAAAAABAAABBAABBAABBABBAABABABBBAAAABBABAAABAABBBBBABBAAAABABBAABBBABABAAABAABAAAABBBAAAAABABAABAABBAABABBAAAAABBABBBBAABAABBBAABAAAABBBABABBBBABABBBAABABBAAA...

output:

NO

result:

ok no solution

Test #128:

score: 0
Accepted
time: 220ms
memory: 1005916kb

input:

ABABBBABBBBABBBBBABABBAABAAABBAAAABABAAABBAAAABAAABABBBAAABBABAAABBABAAABABABBBBBABBABBABBABABABBBBBBABBABBBAAAAABBBAAAABAAAABAABABABAAAAABBABBAABBABBAABAABBBAAAAAAABAABBBBAABABBAABAAABBAABAAABABBABABABABABABAAAABABAAABBBBAAAAABAAABBABBABBABABAAABAAAAAAAAAAAABABABBBBAAAAABBBBABBBABAAAAAAABBABABBAABB...

output:

NO

result:

ok no solution

Test #129:

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

input:

BBBAAABABABAAABBBAAAABABBAAABABAAAAABABBAABAABABBBAAABAAAAABBAAAABBAAABBBABBBAABAABABABABBBBAAAABBAABAAABBBBBBABABAABBAABABBAABBABBBABBBAAABBABAAAAABBAABBABABABABAAABAABAAABBBBBABBABABBABBABBAABAABBBABBAAAABAABBAAABAAABBBABBBABABABAAABAAABBBABAABBBAABAAAABAAABBAAABAAAAABBBABABABAABABBAABBAAAABBABAAA...

output:

NO

result:

ok no solution

Test #130:

score: 0
Accepted
time: 106ms
memory: 460712kb

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

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: 203ms
memory: 817684kb

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

input:

BABBABABAAABAAAABBABABBBBBABBBBABBBABBBBBBAABBBAAAABABAABBAABBBBABABABBBBBAABABBAAAAAABAABBBBBAAAAABABBBAAAABABBBBABBBBABAAAABBAAAAABAABABBAABAABAABBBBABAAAABBAAAABAAABAABBBABAABBBAABAAAAABBBBAABBBABBBBABBBABABAAABAABABABBABAAAAAAAAAABAAAABAAABBBBAAABBABBBBAAABABBBBABBABBBAABBABBABAAABABBBBABBAAAAAB...

output:

NO

result:

ok no solution

Test #134:

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

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: 67ms
memory: 365120kb

input:

BBABABBAABBAAAABABBBABBBABAABAAABABBAAAABBBABAAABBAABBBBBBAABABAABAAABBBBBABABBAABBBBAABAAABBBAABBBBAABBBABAABAAAABBBAABBBAABBAAABABBBBBAABBAABBBAAABABAAABAAAABBAABBBBAABAABBABABAABAABBAAABABABAABBBABAAABAAAABAABABBBABAAAAAABABAAABABBBAABABBBBABBBABABBABABBAABBAABBBABABAAAAABBBBBABABABBBBBBABBBBABBB...

output:

NO

result:

ok no solution

Test #136:

score: 0
Accepted
time: 128ms
memory: 723456kb

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

input:

BBAAABABAABAAAAABBABABBABABABBAABABBBBAAABABAAABBBABAAAABBBBBBBBAAAABABBABAAAABAABABAAAABBBAABABBAAAABBAABBAAAAAABAABAAAAAAAABAAAAABAAABABAAABBABABBBBBBBAAABBBAABBBBBBABAABAAABBBAABAABBAAAAAABAAABBABBBABAAABBBABAAABBAABBAAAAABBBBBAAAAAABAABBAABABBBBBAAAABAAAAABBAAAAAAAABBBBAAABABAAABAABBBBBAABAAABAB...

output:

NO

result:

ok no solution

Test #138:

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

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: 35ms
memory: 296280kb

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: 203ms
memory: 925956kb

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

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: 3ms
memory: 11588kb

input:

BBABBBAABBABAABABABABBABABAABBABBABAABBAAAAABAABABAABBBBABBBAAABBABABABBBAAAABAABBABBBBABAAABAABBABABAABAABBABAAABBBABBBAAAAAABBABAAABBBBAAABABBBAAAABBBAABAAAAABBBAABBABBBAABABAAAABBBAABBBBBABBBAABBABAAAABABBABBBBBABABABABABBBAAAAAABAAABABABABAABAAABABBABABAABBABAABAABAAABABAABBBABBBAAABABAAAAABAABA...

output:

NO

result:

ok no solution

Test #143:

score: 0
Accepted
time: 139ms
memory: 714524kb

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: 184ms
memory: 891384kb

input:

BABAABABAAAAAAABBBBAABAAAAABABBABBBAABABBBBBBABBBAAAABBBBBABABABABAAAABBAAAABABBBBABBAABABBAABAABABBAAABAAAABBBBAABBAAABABABBAAABBABABBAAAAAAABABBABBABABBBBBBABABAABAAABABABABAABAAABBBAABBBBBBBABBAABABBAAAABBABAAAABBABAABABAABAABBBBBABAAABAABBABAABBABAAABAABABAAABBAAAAABAAABBABABBABABBABABBBBABBBBBB...

output:

NO

result:

ok no solution

Test #145:

score: 0
Accepted
time: 19ms
memory: 134744kb

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: 39ms
memory: 186984kb

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

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

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: 10ms
memory: 55124kb

input:

ABAAAABBBAABBAAAAABBABABAABBBAAAAABBAABBABBAABAAAABABAABBBBBBABABAABABABBABBBAABBABAABBAABBBAABBABBAAABBAABAABABABBAAABAABABBBBBBAAAAABAAAAAABABAAABABABBBABBBBAABABBBBBABABABABABABBBBABBBBBBAAABAABAAAAABBBBAAABBBBABBABBABBAAABABAABBBAAAAABBBBBBBBBAABAABABBABBAAABBBAAAABABBBBBABBBBAABABABAAABBBABABAB...

output:

NO

result:

ok no solution

Test #150:

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

input:

ABABBABAAAAABABBBAAAAABBAAAABAABBBBABBAAAABBBAABBABBAABBAAAAAABBAABBAAAABABABBBBAAAABABABABBABBBBABBBAAABABBAAABABABBBABBBBBBBABBBBAAABBABAABAAABAABBABBBBABBBBABBBBAABBBBAAABBAAAAAABABABAAAAAAABBBBABAAABABBAABBAAABABAABAABBAABBAAAAAABBBABAAABBABAAAABBBBBBBBBAABBABBABABBAAABABAABABAABBBBBBBBBABAAAAAA...

output:

NO

result:

ok no solution

Test #151:

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

input:

BAABAABAABBBAABABBAAAAAABAABBBBBAABAABAABABABABBBBABABBBBABAABABABAABAAAAABBBAAAAABBABBABBBBAAABBBBABABAAAABAAAABBBABAABAABAAABABBABBBBABABAAAABAAAAAAABAAABBBABBBBBBABBAAAAAAAABAAABAABBABABBABBAABAABBABAAAABABBBBABAAABBAAABABBAABBAABAABBABBABAABBBABBABABABAAAABBABABBABAAAABBABAABABBBBAABABABAAAABAAA...

output:

NO

result:

ok no solution

Test #152:

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

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: 25ms
memory: 101316kb

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

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: 63ms
memory: 430012kb

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: 57ms
memory: 315300kb

input:

AABAABBAAAABBBABBABBBAABBBBBAABBBBAAABAABABBAABBBBBAAAABBAAAABBABBAABBABABBBBBABABBABBABABBBBBBBABBAABBBBABBAABABAABAABAABAAAAABBBBAAAAAAAAABAAAAAAAABBAAAAAABAABBAABBBAABAABBBABBBBABBABABAABBAAABABAABBAABBAAABAABBABBABAAABBBBAABBBBBBAABABAAAAABABABAABBAABBAABABAABABABBBBBABAAAAABAABBABBBBAABAABAABAA...

output:

NO

result:

ok no solution

Test #157:

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

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: 180ms
memory: 739196kb

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

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

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

input:

ABBBAAAABBAAAAABBBABBBBBABBBBAABBABABAAAABAABBBBBBABABAABBBBBBBAABAAABAAAABBABABABBBABBBABBABABABABABABAAAABBAABABBABBBAAAABBAAAABBAAAAAAABBAAAAABBBBABBBABBABBBBBAABAAAAAABABBABABBAABAABAABABABAABAABABABABBBBBBAABAAAABABBABABBABABBAAAABABAAAABABBBAABAAABBABAAABAABABABBABBBBAAABBBABAABABBAAABABBAABAB...

output:

NO

result:

ok no solution

Test #162:

score: 0
Accepted
time: 44ms
memory: 229980kb

input:

AABAABBABABBBAABBABAABABBBBBBAABABBABBBBBBBAABBBAAAABBAABABAABABAAAABBBAABABABABBBBBBBBAAAAABBAAABBBBBAABBBAAAABABBAABAAAAAABABBAABABBBBBBBAABAAABAABBABBBAABABBABBAABBBAAABAAAAAABAAAAAAAABAABABABBBBABAABAAABAABBAABABBAABBBBBABAAABBBBBAAABBBABBABBAABBAABBBBBAAABABAABBBAABABBABAAAABBBBBAABABAABABAABBA...

output:

NO

result:

ok no solution

Test #163:

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

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: 172ms
memory: 838248kb

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

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: 15ms
memory: 56612kb

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: 107ms
memory: 532780kb

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: 77ms
memory: 358508kb

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

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: 53ms
memory: 231536kb

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

input:

ABAAAABABBABBBABABBABAAAAABAABABBBABBBBAAABBBBAAABBBBABBBAAABABBBAAABABABBBBBBAAAAABAABBAAAABAAAAABBABBBAAAAAABBAABAABABAABBBAABBABBAAABBBABAAABABABBABAABBBAAAABAAAABBBABAABBABBABBABABBAAAABBAABABBBAAABBAABABBBABBBAABABBBABAAABBBABBAABAAABABBBBAABAABABAAABAAABAABAAAABABBABBBBBBABBAABBBAAAAABBAAABBAA...

output:

NO

result:

ok no solution

Test #172:

score: 0
Accepted
time: 103ms
memory: 559780kb

input:

ABBBAABAAAABBBABAAAABBAABABABBABBBBBABABABAABBBAABBAAAABBAAAAAABBABBABBBBABBBBAAABAABBBBBBAABABBBBAAABAAAABAABBAAAAABBAABABABBBAAABBABBABAABBABABBBBBABAABBBBBABBBABABABAABBABBABAAAAABAABABABAAAAABBABBABAABBAABBBABABBAAAAAABABABBBAABBAABAAABABAAAAAAABBBAABABBBAABBBBBBBAABBABAAAAABABBABAAABBAABAAABAAA...

output:

NO

result:

ok no solution

Test #173:

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

input:

ABABBAAABAABBAAAABABBABBAAAABABBBABBABBBBBBABBBAAAAAAAABABBAABBBBABBAABAAAABAABBABBAABABAAABBBBBBAAAABAAAABABABBAABBAAABBBBAABBAAABBAAABABBAAABABAAABBBAAAAABABBABBABAAAABABAABBAAAABBBBABBABABABABBAABABBAAAABABABAAABABBABABAABBBAABBABAABBABBAABBABBABABABABBBBABABAABABBAABABAABBBAABBAABABBBBBAABABBAAB...

output:

NO

result:

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