QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#85599#5236. Wersja dla profesjonalistów [A]anhduc270110 ✓4ms3796kbC++231.8kb2023-03-07 22:01:492023-03-07 22:01:50

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-07 22:01:50]
  • 评测
  • 测评结果:10
  • 用时:4ms
  • 内存:3796kb
  • [2023-03-07 22:01:49]
  • 提交

answer

/*
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimize("unroll-loops")
*/
#include<bits/stdc++.h>
#define int long long
using namespace std;
#define all(x) x.begin(), x.end()
#define len(x) ll(x.size())
#define eb emplace_back
#define PI 3.14159265359
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define MIN(v) *min_element(all(v))
#define MAX(v) *max_element(all(v))
#define BIT(x,i) (1&((x)>>(i)))
#define MASK(x) (1LL<<(x))
#define task "tnc"  
typedef long long ll;
const ll INF=1e18;
const int maxn=1e6+5;
const int mod=1e9+7;
const int mo=998244353;
using pi=pair<ll,ll>;
using vi=vector<ll>;
using pii=pair<pair<ll,ll>,ll>;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

string mul(int x,string s){
	vector<int>q;
	while(x>0){
		q.pb(x%9);
		x/=9;
	}
	string ans;
	for(int i=0;i<q.size();i++){
		if(q[i]!=0){
			ans+=char('0'+q[i]);
			ans+="["+s+"]";
		}
		if(i!=len(q)-1){
			ans+="9[";
		}
	}
	for(int i=1;i<q.size();i++){
		ans+="]";
	}
	return ans;
}
vector<string>kq;
void recur(int n){
	if(n==1){
		kq.pb("A");
	}
	else if(n==2){
		kq.pb("AEACA");
	}
	else if(n==3){
		kq.pb("AEAEACCAEACA");
	}
	else if(n%2==1){
		int k=n/2;
		string s1=mul(k+1,"A");
		string s2=mul(k,"EC")+"E";
		kq.pb(mul(k,s1+s2)+"A");
		kq.pb(mul(k,"EA"));
		kq.pb("2[");
		kq.pb(mul(k,"C"));
		recur(k);
		kq.pb("]");
	}
	else{
		kq.pb("A");
		kq.pb(mul(n-1,"EA"));
		kq.pb(mul(n-1,"C"));
		recur(n-1);
	}
}
signed main()
{
	cin.tie(0),cout.tie(0)->sync_with_stdio(0);
    //freopen(task".inp" , "r" , stdin);
    //freopen(task".out" , "w" , stdout);
    int n;
    cin>>n;
    kq.pb(mul(n,"C"));
    recur(n);
    kq.pb(mul(n,"E"));
    for(auto v:kq){
    	cout<<v;
    }
    

    return 0;
}


Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 1
Accepted

Test #1:

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

input:

1

output:

1[C]A1[E]

result:

ok correct (length = 3)

Test #2:

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

input:

2

output:

2[C]AEACA2[E]

result:

ok correct (length = 13)

Test #3:

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

input:

4

output:

4[C]A3[EA]3[C]AEAEACCAEACA4[E]

result:

ok correct (length = 30)

Test #4:

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

input:

5

output:

5[C]2[3[A]2[EC]E]A2[EA]2[2[C]AEACA]5[E]

result:

ok correct (length = 43)

Test #5:

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

input:

6

output:

6[C]A5[EA]5[C]2[3[A]2[EC]E]A2[EA]2[2[C]AEACA]6[E]

result:

ok correct (length = 53)

Test #6:

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

input:

7

output:

7[C]3[4[A]3[EC]E]A3[EA]2[3[C]AEAEACCAEACA]7[E]

result:

ok correct (length = 53)

Test #7:

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

input:

10

output:

1[C]9[1[C]]A9[1[EA]]9[1[C]]4[5[A]4[EC]E]A4[EA]2[4[C]A3[EA]3[C]AEAEACCAEACA]1[E]9[1[E]]

result:

ok correct (length = 79)

Test #8:

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

input:

69

output:

6[C]9[7[C]]7[8[A]9[3[A]]7[EC]9[3[EC]]E]9[3[8[A]9[3[A]]7[EC]9[3[EC]]E]]A7[EA]9[3[EA]]2[7[C]9[3[C]]A6[EA]9[3[EA]]6[C]9[3[C]]7[8[A]9[1[A]]7[EC]9[1[EC]]E]9[1[8[A]9[1[A]]7[EC]9[1[EC]]E]]A7[EA]9[1[EA]]2[7[C]9[1[C]]A6[EA]9[1[EA]]6[C]9[1[C]]7[8[A]7[EC]E]A7[EA]2[7[C]3[4[A]3[EC]E]A3[EA]2[3[C]AEAEACCAEACA]]]]6...

result:

ok correct (length = 277)

Test #9:

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

input:

100

output:

1[C]9[2[C]9[1[C]]]A9[2[EA]9[1[EA]]]9[2[C]9[1[C]]]4[5[A]9[5[A]]4[EC]9[5[EC]]E]9[5[5[A]9[5[A]]4[EC]9[5[EC]]E]]A4[EA]9[5[EA]]2[4[C]9[5[C]]6[7[A]9[2[A]]6[EC]9[2[EC]]E]9[2[7[A]9[2[A]]6[EC]9[2[EC]]E]]A6[EA]9[2[EA]]2[6[C]9[2[C]]A5[EA]9[2[EA]]5[C]9[2[C]]2[3[A]9[1[A]]2[EC]9[1[EC]]E]9[1[3[A]9[1[A]]2[EC]9[1[EC...

result:

ok correct (length = 312)

Test #10:

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

input:

101

output:

2[C]9[2[C]9[1[C]]]5[6[A]9[5[A]]5[EC]9[5[EC]]E]9[5[6[A]9[5[A]]5[EC]9[5[EC]]E]]A5[EA]9[5[EA]]2[5[C]9[5[C]]A4[EA]9[5[EA]]4[C]9[5[C]]6[7[A]9[2[A]]6[EC]9[2[EC]]E]9[2[7[A]9[2[A]]6[EC]9[2[EC]]E]]A6[EA]9[2[EA]]2[6[C]9[2[C]]A5[EA]9[2[EA]]5[C]9[2[C]]2[3[A]9[1[A]]2[EC]9[1[EC]]E]9[1[3[A]9[1[A]]2[EC]9[1[EC]]E]]A...

result:

ok correct (length = 321)

Test #11:

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

input:

250

output:

7[C]9[9[3[C]]]A6[EA]9[9[3[EA]]]6[C]9[9[3[C]]]7[8[A]9[4[A]9[1[A]]]7[EC]9[4[EC]9[1[EC]]]E]9[4[8[A]9[4[A]9[1[A]]]7[EC]9[4[EC]9[1[EC]]]E]9[1[8[A]9[4[A]9[1[A]]]7[EC]9[4[EC]9[1[EC]]]E]]]A7[EA]9[4[EA]9[1[EA]]]2[7[C]9[4[C]9[1[C]]]A6[EA]9[4[EA]9[1[EA]]]6[C]9[4[C]9[1[C]]]7[8[A]9[6[A]]7[EC]9[6[EC]]E]9[6[8[A]9[...

result:

ok correct (length = 526)

Test #12:

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

input:

251

output:

8[C]9[9[3[C]]]8[9[5[A]9[1[A]]]8[EC]9[4[EC]9[1[EC]]]E]9[4[9[5[A]9[1[A]]]8[EC]9[4[EC]9[1[EC]]]E]9[1[9[5[A]9[1[A]]]8[EC]9[4[EC]9[1[EC]]]E]]]A8[EA]9[4[EA]9[1[EA]]]2[8[C]9[4[C]9[1[C]]]8[9[7[A]]8[EC]9[6[EC]]E]9[6[9[7[A]]8[EC]9[6[EC]]E]]A8[EA]9[6[EA]]2[8[C]9[6[C]]A7[EA]9[6[EA]]7[C]9[6[C]]3[4[A]9[3[A]]3[EC]...

result:

ok correct (length = 456)

Test #13:

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

input:

252

output:

9[1[C]9[3[C]]]A8[EA]9[9[3[EA]]]8[C]9[9[3[C]]]8[9[5[A]9[1[A]]]8[EC]9[4[EC]9[1[EC]]]E]9[4[9[5[A]9[1[A]]]8[EC]9[4[EC]9[1[EC]]]E]9[1[9[5[A]9[1[A]]]8[EC]9[4[EC]9[1[EC]]]E]]]A8[EA]9[4[EA]9[1[EA]]]2[8[C]9[4[C]9[1[C]]]8[9[7[A]]8[EC]9[6[EC]]E]9[6[9[7[A]]8[EC]9[6[EC]]E]]A8[EA]9[6[EA]]2[8[C]9[6[C]]A7[EA]9[6[EA...

result:

ok correct (length = 479)

Test #14:

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

input:

299

output:

2[C]9[6[C]9[3[C]]]5[6[A]9[7[A]9[1[A]]]5[EC]9[7[EC]9[1[EC]]]E]9[7[6[A]9[7[A]9[1[A]]]5[EC]9[7[EC]9[1[EC]]]E]9[1[6[A]9[7[A]9[1[A]]]5[EC]9[7[EC]9[1[EC]]]E]]]A5[EA]9[7[EA]9[1[EA]]]2[5[C]9[7[C]9[1[C]]]2[3[A]9[8[A]]2[EC]9[8[EC]]E]9[8[3[A]9[8[A]]2[EC]9[8[EC]]E]]A2[EA]9[8[EA]]2[2[C]9[8[C]]A1[EA]9[8[EA]]1[C]9...

result:

ok correct (length = 486)

Test #15:

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

input:

300

output:

3[C]9[6[C]9[3[C]]]A2[EA]9[6[EA]9[3[EA]]]2[C]9[6[C]9[3[C]]]5[6[A]9[7[A]9[1[A]]]5[EC]9[7[EC]9[1[EC]]]E]9[7[6[A]9[7[A]9[1[A]]]5[EC]9[7[EC]9[1[EC]]]E]9[1[6[A]9[7[A]9[1[A]]]5[EC]9[7[EC]9[1[EC]]]E]]]A5[EA]9[7[EA]9[1[EA]]]2[5[C]9[7[C]9[1[C]]]2[3[A]9[8[A]]2[EC]9[8[EC]]E]9[8[3[A]9[8[A]]2[EC]9[8[EC]]E]]A2[EA]...

result:

ok correct (length = 515)

Subtask #2:

score: 1
Accepted

Test #16:

score: 1
Accepted
time: 2ms
memory: 3460kb

input:

320

output:

5[C]9[8[C]9[3[C]]]A4[EA]9[8[EA]9[3[EA]]]4[C]9[8[C]9[3[C]]]6[7[A]9[8[A]9[1[A]]]6[EC]9[8[EC]9[1[EC]]]E]9[8[7[A]9[8[A]9[1[A]]]6[EC]9[8[EC]9[1[EC]]]E]9[1[7[A]9[8[A]9[1[A]]]6[EC]9[8[EC]9[1[EC]]]E]]]A6[EA]9[8[EA]9[1[EA]]]2[6[C]9[8[C]9[1[C]]]7[8[A]9[8[A]]7[EC]9[8[EC]]E]9[8[8[A]9[8[A]]7[EC]9[8[EC]]E]]A7[EA]...

result:

ok correct (length = 555)

Test #17:

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

input:

321

output:

6[C]9[8[C]9[3[C]]]7[8[A]9[8[A]9[1[A]]]7[EC]9[8[EC]9[1[EC]]]E]9[8[8[A]9[8[A]9[1[A]]]7[EC]9[8[EC]9[1[EC]]]E]9[1[8[A]9[8[A]9[1[A]]]7[EC]9[8[EC]9[1[EC]]]E]]]A7[EA]9[8[EA]9[1[EA]]]2[7[C]9[8[C]9[1[C]]]A6[EA]9[8[EA]9[1[EA]]]6[C]9[8[C]9[1[C]]]7[8[A]9[8[A]]7[EC]9[8[EC]]E]9[8[8[A]9[8[A]]7[EC]9[8[EC]]E]]A7[EA]...

result:

ok correct (length = 507)

Test #18:

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

input:

1000

output:

1[C]9[3[C]9[3[C]9[1[C]]]]A9[3[EA]9[3[EA]9[1[EA]]]]9[3[C]9[3[C]9[1[C]]]]4[5[A]9[1[A]9[6[A]]]4[EC]9[1[EC]9[6[EC]]]E]9[1[5[A]9[1[A]9[6[A]]]4[EC]9[1[EC]9[6[EC]]]E]9[6[5[A]9[1[A]9[6[A]]]4[EC]9[1[EC]9[6[EC]]]E]]]A4[EA]9[1[EA]9[6[EA]]]2[4[C]9[1[C]9[6[C]]]6[7[A]9[9[3[A]]]6[EC]9[9[3[EC]]]E]9[9[3[7[A]9[9[3[A]...

result:

ok correct (length = 809)

Test #19:

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

input:

1024

output:

7[C]9[5[C]9[3[C]9[1[C]]]]A6[EA]9[5[EA]9[3[EA]9[1[EA]]]]6[C]9[5[C]9[3[C]9[1[C]]]]7[8[A]9[2[A]9[6[A]]]7[EC]9[2[EC]9[6[EC]]]E]9[2[8[A]9[2[A]9[6[A]]]7[EC]9[2[EC]9[6[EC]]]E]9[6[8[A]9[2[A]9[6[A]]]7[EC]9[2[EC]9[6[EC]]]E]]]A7[EA]9[2[EA]9[6[EA]]]2[7[C]9[2[C]9[6[C]]]3[4[A]9[1[A]9[3[A]]]3[EC]9[1[EC]9[3[EC]]]E]...

result:

ok correct (length = 663)

Test #20:

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

input:

1235

output:

2[C]9[2[C]9[6[C]9[1[C]]]]5[6[A]9[5[A]9[7[A]]]5[EC]9[5[EC]9[7[EC]]]E]9[5[6[A]9[5[A]9[7[A]]]5[EC]9[5[EC]9[7[EC]]]E]9[7[6[A]9[5[A]9[7[A]]]5[EC]9[5[EC]9[7[EC]]]E]]]A5[EA]9[5[EA]9[7[EA]]]2[5[C]9[5[C]9[7[C]]]2[3[A]9[7[A]9[3[A]]]2[EC]9[7[EC]9[3[EC]]]E]9[7[3[A]9[7[A]9[3[A]]]2[EC]9[7[EC]9[3[EC]]]E]9[3[3[A]9[...

result:

ok correct (length = 934)

Test #21:

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

input:

4094

output:

8[C]9[4[C]9[5[C]9[5[C]]]]A7[EA]9[4[EA]9[5[EA]9[5[EA]]]]7[C]9[4[C]9[5[C]9[5[C]]]]3[4[A]9[2[A]9[7[A]9[2[A]]]]3[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[2[4[A]9[2[A]9[7[A]9[2[A]]]]3[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[7[4[A]9[2[A]9[7[A]9[2[A]]]]3[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[2[4[A]9[2[A]9[7[A]9[2[A]]]]3[EC]9[2[EC]9...

result:

ok correct (length = 1296)

Test #22:

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

input:

4095

output:

9[5[C]9[5[C]9[5[C]]]]4[5[A]9[2[A]9[7[A]9[2[A]]]]4[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[2[5[A]9[2[A]9[7[A]9[2[A]]]]4[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[7[5[A]9[2[A]9[7[A]9[2[A]]]]4[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[2[5[A]9[2[A]9[7[A]9[2[A]]]]4[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]]]]A4[EA]9[2[EA]9[7[EA]9[2[EA]]]]2[4[C]9[...

result:

ok correct (length = 1027)

Test #23:

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

input:

4096

output:

1[C]9[5[C]9[5[C]9[5[C]]]]A9[5[EA]9[5[EA]9[5[EA]]]]9[5[C]9[5[C]9[5[C]]]]4[5[A]9[2[A]9[7[A]9[2[A]]]]4[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[2[5[A]9[2[A]9[7[A]9[2[A]]]]4[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[7[5[A]9[2[A]9[7[A]9[2[A]]]]4[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[2[5[A]9[2[A]9[7[A]9[2[A]]]]4[EC]9[2[EC]9[7[EC]9[2...

result:

ok correct (length = 1056)

Test #24:

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

input:

4097

output:

2[C]9[5[C]9[5[C]9[5[C]]]]5[6[A]9[2[A]9[7[A]9[2[A]]]]5[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[2[6[A]9[2[A]9[7[A]9[2[A]]]]5[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[7[6[A]9[2[A]9[7[A]9[2[A]]]]5[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]9[2[6[A]9[2[A]9[7[A]9[2[A]]]]5[EC]9[2[EC]9[7[EC]9[2[EC]]]]E]]]]A5[EA]9[2[EA]9[7[EA]9[2[EA]]]]2[5[...

result:

ok correct (length = 933)

Test #25:

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

input:

4998

output:

3[C]9[6[C]9[7[C]9[6[C]]]]A2[EA]9[6[EA]9[7[EA]9[6[EA]]]]2[C]9[6[C]9[7[C]9[6[C]]]]5[6[A]9[7[A]9[3[A]9[3[A]]]]5[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]9[7[6[A]9[7[A]9[3[A]9[3[A]]]]5[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]9[3[6[A]9[7[A]9[3[A]9[3[A]]]]5[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]9[3[6[A]9[7[A]9[3[A]9[3[A]]]]5[EC]9[7[EC]9...

result:

ok correct (length = 1662)

Test #26:

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

input:

4999

output:

4[C]9[6[C]9[7[C]9[6[C]]]]6[7[A]9[7[A]9[3[A]9[3[A]]]]6[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]9[7[7[A]9[7[A]9[3[A]9[3[A]]]]6[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]9[3[7[A]9[7[A]9[3[A]9[3[A]]]]6[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]9[3[7[A]9[7[A]9[3[A]9[3[A]]]]6[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]]]]A6[EA]9[7[EA]9[3[EA]9[3[EA]]]]2[6[...

result:

ok correct (length = 1391)

Test #27:

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

input:

5000

output:

5[C]9[6[C]9[7[C]9[6[C]]]]A4[EA]9[6[EA]9[7[EA]9[6[EA]]]]4[C]9[6[C]9[7[C]9[6[C]]]]6[7[A]9[7[A]9[3[A]9[3[A]]]]6[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]9[7[7[A]9[7[A]9[3[A]9[3[A]]]]6[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]9[3[7[A]9[7[A]9[3[A]9[3[A]]]]6[EC]9[7[EC]9[3[EC]9[3[EC]]]]E]9[3[7[A]9[7[A]9[3[A]9[3[A]]]]6[EC]9[7[EC]9...

result:

ok correct (length = 1427)

Subtask #3:

score: 1
Accepted

Test #28:

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

input:

1000000

output:

1[C]9[6[C]9[6[C]9[3[C]9[8[C]9[7[C]9[1[C]]]]]]]A9[6[EA]9[6[EA]9[3[EA]9[8[EA]9[7[EA]9[1[EA]]]]]]]9[6[C]9[6[C]9[3[C]9[8[C]9[7[C]9[1[C]]]]]]]4[5[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]4[EC]9[7[EC]9[7[EC]9[1[EC]9[4[EC]9[8[EC]]]]]]E]9[7[5[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]4[EC]9[7[EC]9[7[EC]9[1[EC]9[4[EC...

result:

ok correct (length = 3639)

Test #29:

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

input:

999998

output:

8[C]9[5[C]9[6[C]9[3[C]9[8[C]9[7[C]9[1[C]]]]]]]A7[EA]9[5[EA]9[6[EA]9[3[EA]9[8[EA]9[7[EA]9[1[EA]]]]]]]7[C]9[5[C]9[6[C]9[3[C]9[8[C]9[7[C]9[1[C]]]]]]]3[4[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]3[EC]9[7[EC]9[7[EC]9[1[EC]9[4[EC]9[8[EC]]]]]]E]9[7[4[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]3[EC]9[7[EC]9[7[EC]9[1[...

result:

ok correct (length = 3998)

Test #30:

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

input:

524286

output:

9[6[C]9[1[C]9[8[C]9[7[C]9[8[C]]]]]]A8[EA]9[5[EA]9[1[EA]9[8[EA]9[7[EA]9[8[EA]]]]]]8[C]9[5[C]9[1[C]9[8[C]9[7[C]9[8[C]]]]]]8[9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]8[EC]9[2[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[2[9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]8[EC]9[2[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[5[9[3[A]...

result:

ok correct (length = 4435)

Test #31:

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

input:

524288

output:

2[C]9[6[C]9[1[C]9[8[C]9[7[C]9[8[C]]]]]]A1[EA]9[6[EA]9[1[EA]9[8[EA]9[7[EA]9[8[EA]]]]]]1[C]9[6[C]9[1[C]9[8[C]9[7[C]9[8[C]]]]]]9[3[1[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[5[1[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[8[1[...

result:

ok correct (length = 3385)

Test #32:

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

input:

524290

output:

4[C]9[6[C]9[1[C]9[8[C]9[7[C]9[8[C]]]]]]A3[EA]9[6[EA]9[1[EA]9[8[EA]9[7[EA]9[8[EA]]]]]]3[C]9[6[C]9[1[C]9[8[C]9[7[C]9[8[C]]]]]]1[2[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]1[EC]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[3[2[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]1[EC]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]...

result:

ok correct (length = 3262)

Test #33:

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

input:

786429

output:

9[9[7[C]9[7[C]9[2[C]9[4[C]9[1[C]]]]]]]4[5[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]4[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[EC]]]]]]E]9[4[5[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]4[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[EC]]]]]]E]9[3[5[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]4[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[EC]]...

result:

ok correct (length = 4370)

Test #34:

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

input:

786431

output:

2[C]9[9[7[C]9[7[C]9[2[C]9[4[C]9[1[C]]]]]]]5[6[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]5[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[EC]]]]]]E]9[4[6[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]5[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[EC]]]]]]E]9[3[6[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]5[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[...

result:

ok correct (length = 3562)

Test #35:

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

input:

951557

output:

5[C]9[5[C]9[2[C]9[9[1[C]9[7[C]9[1[C]]]]]]]2[3[A]9[7[A]9[5[A]9[4[A]9[9[8[A]]]]]]2[EC]9[7[EC]9[5[EC]9[4[EC]9[9[8[EC]]]]]]E]9[7[3[A]9[7[A]9[5[A]9[4[A]9[9[8[A]]]]]]2[EC]9[7[EC]9[5[EC]9[4[EC]9[9[8[EC]]]]]]E]9[5[3[A]9[7[A]9[5[A]9[4[A]9[9[8[A]]]]]]2[EC]9[7[EC]9[5[EC]9[4[EC]9[9[8[EC]]]]]]E]9[4[3[A]9[7[A]9[5...

result:

ok correct (length = 4718)

Test #36:

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

input:

838702

output:

1[C]9[3[C]9[4[C]9[7[C]9[1[C]9[5[C]9[1[C]]]]]]]A9[3[EA]9[4[EA]9[7[EA]9[1[EA]9[5[EA]9[1[EA]]]]]]]9[3[C]9[4[C]9[7[C]9[1[C]9[5[C]9[1[C]]]]]]]4[5[A]9[1[A]9[2[A]9[8[A]9[9[7[A]]]]]]4[EC]9[1[EC]9[2[EC]9[8[EC]9[9[7[EC]]]]]]E]9[1[5[A]9[1[A]9[2[A]9[8[A]9[9[7[A]]]]]]4[EC]9[1[EC]9[2[EC]9[8[EC]9[9[7[EC]]]]]]E]9[2...

result:

ok correct (length = 4235)

Subtask #4:

score: 1
Accepted

Test #37:

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

input:

999999

output:

9[6[C]9[6[C]9[3[C]9[8[C]9[7[C]9[1[C]]]]]]]4[5[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]4[EC]9[7[EC]9[7[EC]9[1[EC]9[4[EC]9[8[EC]]]]]]E]9[7[5[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]4[EC]9[7[EC]9[7[EC]9[1[EC]9[4[EC]9[8[EC]]]]]]E]9[7[5[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]4[EC]9[7[EC]9[7[EC]9[1[EC]9[4[EC]9[8[...

result:

ok correct (length = 3585)

Test #38:

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

input:

999997

output:

7[C]9[5[C]9[6[C]9[3[C]9[8[C]9[7[C]9[1[C]]]]]]]3[4[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]3[EC]9[7[EC]9[7[EC]9[1[EC]9[4[EC]9[8[EC]]]]]]E]9[7[4[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]3[EC]9[7[EC]9[7[EC]9[1[EC]9[4[EC]9[8[EC]]]]]]E]9[7[4[A]9[7[A]9[7[A]9[1[A]9[4[A]9[8[A]]]]]]3[EC]9[7[EC]9[7[EC]9[1[EC]9[4[EC]...

result:

ok correct (length = 3895)

Test #39:

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

input:

524287

output:

1[C]9[6[C]9[1[C]9[8[C]9[7[C]9[8[C]]]]]]9[3[1[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[5[1[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[8[1[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[3[1[...

result:

ok correct (length = 3337)

Test #40:

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

input:

524289

output:

3[C]9[6[C]9[1[C]9[8[C]9[7[C]9[8[C]]]]]]1[2[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]1[EC]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[3[2[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]1[EC]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]]]]]]E]9[5[2[A]9[3[A]9[5[A]9[8[A]9[3[A]9[4[A]]]]]]1[EC]9[3[EC]9[5[EC]9[8[EC]9[3[EC]9[4[EC]...

result:

ok correct (length = 3207)

Test #41:

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

input:

786428

output:

8[C]9[8[C]9[6[C]9[7[C]9[2[C]9[4[C]9[1[C]]]]]]]A7[EA]9[8[EA]9[6[EA]9[7[EA]9[2[EA]9[4[EA]9[1[EA]]]]]]]7[C]9[8[C]9[6[C]9[7[C]9[2[C]9[4[C]9[1[C]]]]]]]3[4[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]3[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[EC]]]]]]E]9[4[4[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]3[EC]9[4[EC]9[3[EC]9[8[...

result:

ok correct (length = 4475)

Test #42:

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

input:

786430

output:

1[C]9[9[7[C]9[7[C]9[2[C]9[4[C]9[1[C]]]]]]]A9[9[7[EA]9[7[EA]9[2[EA]9[4[EA]9[1[EA]]]]]]]9[9[7[C]9[7[C]9[2[C]9[4[C]9[1[C]]]]]]]4[5[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]4[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[EC]]]]]]E]9[4[5[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]4[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[EC]]]]]]...

result:

ok correct (length = 4450)

Test #43:

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

input:

786432

output:

3[C]9[9[7[C]9[7[C]9[2[C]9[4[C]9[1[C]]]]]]]A2[EA]9[9[7[EA]9[7[EA]9[2[EA]9[4[EA]9[1[EA]]]]]]]2[C]9[9[7[C]9[7[C]9[2[C]9[4[C]9[1[C]]]]]]]5[6[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]5[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6[EC]]]]]]E]9[4[6[A]9[4[A]9[3[A]9[8[A]9[5[A]9[6[A]]]]]]5[EC]9[4[EC]9[3[EC]9[8[EC]9[5[EC]9[6...

result:

ok correct (length = 3610)

Test #44:

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

input:

724171

output:

4[C]9[3[C]9[3[C]9[3[C]9[2[C]9[3[C]9[1[C]]]]]]]6[7[A]9[1[A]9[6[A]9[1[A]9[1[A]9[6[A]]]]]]6[EC]9[1[EC]9[6[EC]9[1[EC]9[1[EC]9[6[EC]]]]]]E]9[1[7[A]9[1[A]9[6[A]9[1[A]9[1[A]9[6[A]]]]]]6[EC]9[1[EC]9[6[EC]9[1[EC]9[1[EC]9[6[EC]]]]]]E]9[6[7[A]9[1[A]9[6[A]9[1[A]9[1[A]9[6[A]]]]]]6[EC]9[1[EC]9[6[EC]9[1[EC]9[1[EC]...

result:

ok correct (length = 3973)

Test #45:

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

input:

868406

output:

5[C]9[9[2[C]9[3[C]9[6[C]9[5[C]9[1[C]]]]]]]A4[EA]9[9[2[EA]9[3[EA]9[6[EA]9[5[EA]9[1[EA]]]]]]]4[C]9[9[2[C]9[3[C]9[6[C]9[5[C]9[1[C]]]]]]]6[7[A]9[4[A]9[5[A]9[1[A]9[3[A]9[7[A]]]]]]6[EC]9[4[EC]9[5[EC]9[1[EC]9[3[EC]9[7[EC]]]]]]E]9[4[7[A]9[4[A]9[5[A]9[1[A]9[3[A]9[7[A]]]]]]6[EC]9[4[EC]9[5[EC]9[1[EC]9[3[EC]9[7...

result:

ok correct (length = 3980)

Subtask #5:

score: 1
Accepted

Test #46:

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

input:

10000000000

output:

1[C]9[1[C]9[1[C]9[8[C]9[7[C]9[6[C]9[6[C]9[2[C]9[7[C]9[7[C]9[2[C]]]]]]]]]]]A9[1[EA]9[1[EA]9[8[EA]9[7[EA]9[6[EA]9[6[EA]9[2[EA]9[7[EA]9[7[EA]9[2[EA]]]]]]]]]]]9[1[C]9[1[C]9[8[C]9[7[C]9[6[C]9[6[C]9[2[C]9[7[C]9[7[C]9[2[C]]]]]]]]]]]4[5[A]9[9[5[A]9[8[A]9[3[A]9[3[A]9[3[A]9[1[A]9[8[A]9[3[A]9[1[A]]]]]]]]]]]4[E...

result:

ok correct (length = 13934)

Test #47:

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

input:

9999999998

output:

8[C]9[9[1[C]9[8[C]9[7[C]9[6[C]9[6[C]9[2[C]9[7[C]9[7[C]9[2[C]]]]]]]]]]]A7[EA]9[9[1[EA]9[8[EA]9[7[EA]9[6[EA]9[6[EA]9[2[EA]9[7[EA]9[7[EA]9[2[EA]]]]]]]]]]]7[C]9[9[1[C]9[8[C]9[7[C]9[6[C]9[6[C]9[2[C]9[7[C]9[7[C]9[2[C]]]]]]]]]]]3[4[A]9[9[5[A]9[8[A]9[3[A]9[3[A]9[3[A]9[1[A]9[8[A]9[3[A]9[1[A]]]]]]]]]]]3[EC]9[...

result:

ok correct (length = 15092)

Test #48:

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

input:

8589934590

output:

6[C]9[1[C]9[9[6[C]9[2[C]9[4[C]9[8[C]9[4[C]9[1[C]9[4[C]9[2[C]]]]]]]]]]]A5[EA]9[1[EA]9[9[6[EA]9[2[EA]9[4[EA]9[8[EA]9[4[EA]9[1[EA]9[4[EA]9[2[EA]]]]]]]]]]]5[C]9[1[C]9[9[6[C]9[2[C]9[4[C]9[8[C]9[4[C]9[1[C]9[4[C]9[2[C]]]]]]]]]]]2[3[A]9[5[A]9[4[A]9[7[A]9[5[A]9[6[A]9[8[A]9[6[A]9[9[2[A]9[1[A]]]]]]]]]]]2[EC]9[...

result:

ok correct (length = 17408)

Test #49:

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

input:

8589934592

output:

8[C]9[1[C]9[9[6[C]9[2[C]9[4[C]9[8[C]9[4[C]9[1[C]9[4[C]9[2[C]]]]]]]]]]]A7[EA]9[1[EA]9[9[6[EA]9[2[EA]9[4[EA]9[8[EA]9[4[EA]9[1[EA]9[4[EA]9[2[EA]]]]]]]]]]]7[C]9[1[C]9[9[6[C]9[2[C]9[4[C]9[8[C]9[4[C]9[1[C]9[4[C]9[2[C]]]]]]]]]]]3[4[A]9[5[A]9[4[A]9[7[A]9[5[A]9[6[A]9[8[A]9[6[A]9[9[2[A]9[1[A]]]]]]]]]]]3[EC]9[...

result:

ok correct (length = 13498)

Test #50:

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

input:

8589934594

output:

1[C]9[2[C]9[9[6[C]9[2[C]9[4[C]9[8[C]9[4[C]9[1[C]9[4[C]9[2[C]]]]]]]]]]]A9[2[EA]9[9[6[EA]9[2[EA]9[4[EA]9[8[EA]9[4[EA]9[1[EA]9[4[EA]9[2[EA]]]]]]]]]]]9[2[C]9[9[6[C]9[2[C]9[4[C]9[8[C]9[4[C]9[1[C]9[4[C]9[2[C]]]]]]]]]]]4[5[A]9[5[A]9[4[A]9[7[A]9[5[A]9[6[A]9[8[A]9[6[A]9[9[2[A]9[1[A]]]]]]]]]]]4[EC]9[5[EC]9[4[...

result:

ok correct (length = 12997)

Test #51:

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

input:

6442450941

output:

3[C]9[3[C]9[2[C]9[2[C]9[4[C]9[5[C]9[8[C]9[5[C]9[5[C]9[7[C]9[1[C]]]]]]]]]]]1[2[A]9[6[A]9[5[A]9[5[A]9[6[A]9[2[A]9[4[A]9[7[A]9[2[A]9[8[A]]]]]]]]]]1[EC]9[6[EC]9[5[EC]9[5[EC]9[6[EC]9[2[EC]9[4[EC]9[7[EC]9[2[EC]9[8[EC]]]]]]]]]]E]9[6[2[A]9[6[A]9[5[A]9[5[A]9[6[A]9[2[A]9[4[A]9[7[A]9[2[A]9[8[A]]]]]]]]]]1[EC]9[...

result:

ok correct (length = 15685)

Test #52:

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

input:

6442450943

output:

5[C]9[3[C]9[2[C]9[2[C]9[4[C]9[5[C]9[8[C]9[5[C]9[5[C]9[7[C]9[1[C]]]]]]]]]]]2[3[A]9[6[A]9[5[A]9[5[A]9[6[A]9[2[A]9[4[A]9[7[A]9[2[A]9[8[A]]]]]]]]]]2[EC]9[6[EC]9[5[EC]9[5[EC]9[6[EC]9[2[EC]9[4[EC]9[7[EC]9[2[EC]9[8[EC]]]]]]]]]]E]9[6[3[A]9[6[A]9[5[A]9[5[A]9[6[A]9[2[A]9[4[A]9[7[A]9[2[A]9[8[A]]]]]]]]]]2[EC]9[...

result:

ok correct (length = 12812)

Test #53:

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

input:

9220943225

output:

2[C]9[2[C]9[1[C]9[3[C]9[4[C]9[7[C]9[7[C]9[1[C]9[7[C]9[5[C]9[2[C]]]]]]]]]]]5[6[A]9[5[A]9[9[6[A]9[6[A]9[3[A]9[8[A]9[9[8[A]9[2[A]9[1[A]]]]]]]]]]]5[EC]9[5[EC]9[9[6[EC]9[6[EC]9[3[EC]9[8[EC]9[9[8[EC]9[2[EC]9[1[EC]]]]]]]]]]]E]9[5[6[A]9[5[A]9[9[6[A]9[6[A]9[3[A]9[8[A]9[9[8[A]9[2[A]9[1[A]]]]]]]]]]]5[EC]9[5[EC...

result:

ok correct (length = 14047)

Test #54:

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

input:

9147465533

output:

2[C]9[2[C]9[6[C]9[1[C]9[1[C]9[5[C]9[4[C]9[4[C]9[5[C]9[5[C]9[2[C]]]]]]]]]]]5[6[A]9[5[A]9[7[A]9[9[5[A]9[2[A]9[2[A]9[2[A]9[7[A]9[2[A]9[1[A]]]]]]]]]]]5[EC]9[5[EC]9[7[EC]9[9[5[EC]9[2[EC]9[2[EC]9[2[EC]9[7[EC]9[2[EC]9[1[EC]]]]]]]]]]]E]9[5[6[A]9[5[A]9[7[A]9[9[5[A]9[2[A]9[2[A]9[2[A]9[7[A]9[2[A]9[1[A]]]]]]]]]...

result:

ok correct (length = 15129)

Subtask #6:

score: 1
Accepted

Test #55:

score: 1
Accepted
time: 2ms
memory: 3480kb

input:

9999999999

output:

9[1[C]9[1[C]9[8[C]9[7[C]9[6[C]9[6[C]9[2[C]9[7[C]9[7[C]9[2[C]]]]]]]]]]]4[5[A]9[9[5[A]9[8[A]9[3[A]9[3[A]9[3[A]9[1[A]9[8[A]9[3[A]9[1[A]]]]]]]]]]]4[EC]9[9[5[EC]9[8[EC]9[3[EC]9[3[EC]9[3[EC]9[1[EC]9[8[EC]9[3[EC]9[1[EC]]]]]]]]]]]E]9[9[5[5[A]9[9[5[A]9[8[A]9[3[A]9[3[A]9[3[A]9[1[A]9[8[A]9[3[A]9[1[A]]]]]]]]]]]...

result:

ok correct (length = 13843)

Test #56:

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

input:

9999999997

output:

7[C]9[9[1[C]9[8[C]9[7[C]9[6[C]9[6[C]9[2[C]9[7[C]9[7[C]9[2[C]]]]]]]]]]]3[4[A]9[9[5[A]9[8[A]9[3[A]9[3[A]9[3[A]9[1[A]9[8[A]9[3[A]9[1[A]]]]]]]]]]]3[EC]9[9[5[EC]9[8[EC]9[3[EC]9[3[EC]9[3[EC]9[1[EC]9[8[EC]9[3[EC]9[1[EC]]]]]]]]]]]E]9[9[5[4[A]9[9[5[A]9[8[A]9[3[A]9[3[A]9[3[A]9[1[A]9[8[A]9[3[A]9[1[A]]]]]]]]]]]...

result:

ok correct (length = 14941)

Test #57:

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

input:

8589934591

output:

7[C]9[1[C]9[9[6[C]9[2[C]9[4[C]9[8[C]9[4[C]9[1[C]9[4[C]9[2[C]]]]]]]]]]]3[4[A]9[5[A]9[4[A]9[7[A]9[5[A]9[6[A]9[8[A]9[6[A]9[9[2[A]9[1[A]]]]]]]]]]]3[EC]9[5[EC]9[4[EC]9[7[EC]9[5[EC]9[6[EC]9[8[EC]9[6[EC]9[9[2[EC]9[1[EC]]]]]]]]]]]E]9[5[4[A]9[5[A]9[4[A]9[7[A]9[5[A]9[6[A]9[8[A]9[6[A]9[9[2[A]9[1[A]]]]]]]]]]]3[...

result:

ok correct (length = 13425)

Test #58:

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

input:

8589934593

output:

9[2[C]9[9[6[C]9[2[C]9[4[C]9[8[C]9[4[C]9[1[C]9[4[C]9[2[C]]]]]]]]]]]4[5[A]9[5[A]9[4[A]9[7[A]9[5[A]9[6[A]9[8[A]9[6[A]9[9[2[A]9[1[A]]]]]]]]]]]4[EC]9[5[EC]9[4[EC]9[7[EC]9[5[EC]9[6[EC]9[8[EC]9[6[EC]9[9[2[EC]9[1[EC]]]]]]]]]]]E]9[5[5[A]9[5[A]9[4[A]9[7[A]9[5[A]9[6[A]9[8[A]9[6[A]9[9[2[A]9[1[A]]]]]]]]]]]4[EC]9...

result:

ok correct (length = 12918)

Test #59:

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

input:

6442450940

output:

2[C]9[3[C]9[2[C]9[2[C]9[4[C]9[5[C]9[8[C]9[5[C]9[5[C]9[7[C]9[1[C]]]]]]]]]]]A1[EA]9[3[EA]9[2[EA]9[2[EA]9[4[EA]9[5[EA]9[8[EA]9[5[EA]9[5[EA]9[7[EA]9[1[EA]]]]]]]]]]]1[C]9[3[C]9[2[C]9[2[C]9[4[C]9[5[C]9[8[C]9[5[C]9[5[C]9[7[C]9[1[C]]]]]]]]]]]9[6[1[A]9[6[A]9[5[A]9[5[A]9[6[A]9[2[A]9[4[A]9[7[A]9[2[A]9[8[A]]]]]...

result:

ok correct (length = 15871)

Test #60:

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

input:

6442450942

output:

4[C]9[3[C]9[2[C]9[2[C]9[4[C]9[5[C]9[8[C]9[5[C]9[5[C]9[7[C]9[1[C]]]]]]]]]]]A3[EA]9[3[EA]9[2[EA]9[2[EA]9[4[EA]9[5[EA]9[8[EA]9[5[EA]9[5[EA]9[7[EA]9[1[EA]]]]]]]]]]]3[C]9[3[C]9[2[C]9[2[C]9[4[C]9[5[C]9[8[C]9[5[C]9[5[C]9[7[C]9[1[C]]]]]]]]]]]1[2[A]9[6[A]9[5[A]9[5[A]9[6[A]9[2[A]9[4[A]9[7[A]9[2[A]9[8[A]]]]]]]...

result:

ok correct (length = 15881)

Test #61:

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

input:

6442450944

output:

6[C]9[3[C]9[2[C]9[2[C]9[4[C]9[5[C]9[8[C]9[5[C]9[5[C]9[7[C]9[1[C]]]]]]]]]]]A5[EA]9[3[EA]9[2[EA]9[2[EA]9[4[EA]9[5[EA]9[8[EA]9[5[EA]9[5[EA]9[7[EA]9[1[EA]]]]]]]]]]]5[C]9[3[C]9[2[C]9[2[C]9[4[C]9[5[C]9[8[C]9[5[C]9[5[C]9[7[C]9[1[C]]]]]]]]]]]2[3[A]9[6[A]9[5[A]9[5[A]9[6[A]9[2[A]9[4[A]9[7[A]9[2[A]9[8[A]]]]]]]...

result:

ok correct (length = 12886)

Test #62:

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

input:

8108001050

output:

5[C]9[3[C]9[4[C]9[3[C]9[6[C]9[5[C]9[1[C]9[3[C]9[8[C]9[2[C]9[2[C]]]]]]]]]]]A4[EA]9[3[EA]9[4[EA]9[3[EA]9[6[EA]9[5[EA]9[1[EA]9[3[EA]9[8[EA]9[2[EA]9[2[EA]]]]]]]]]]]4[C]9[3[C]9[4[C]9[3[C]9[6[C]9[5[C]9[1[C]9[3[C]9[8[C]9[2[C]9[2[C]]]]]]]]]]]6[7[A]9[1[A]9[2[A]9[6[A]9[7[A]9[2[A]9[5[A]9[1[A]9[4[A]9[1[A]9[1[A]...

result:

ok correct (length = 14636)

Test #63:

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

input:

8970049853

output:

8[C]9[1[C]9[1[C]9[2[C]9[5[C]9[6[C]9[3[C]9[3[C]9[1[C]9[5[C]9[2[C]]]]]]]]]]]8[9[1[A]9[5[A]9[5[A]9[2[A]9[3[A]9[6[A]9[1[A]9[5[A]9[2[A]9[1[A]]]]]]]]]]]8[EC]9[9[5[EC]9[5[EC]9[2[EC]9[3[EC]9[6[EC]9[1[EC]9[5[EC]9[2[EC]9[1[EC]]]]]]]]]]]E]9[9[5[9[1[A]9[5[A]9[5[A]9[2[A]9[3[A]9[6[A]9[1[A]9[5[A]9[2[A]9[1[A]]]]]]]...

result:

ok correct (length = 15947)

Subtask #7:

score: 1
Accepted

Test #64:

score: 1
Accepted
time: 2ms
memory: 3704kb

input:

100000000000000

output:

1[C]9[5[C]9[2[C]9[5[C]9[7[C]9[2[C]9[7[C]9[2[C]9[4[C]9[6[C]9[5[C]9[9[3[C]9[3[C]9[4[C]]]]]]]]]]]]]]]A9[5[EA]9[2[EA]9[5[EA]9[7[EA]9[2[EA]9[7[EA]9[2[EA]9[4[EA]9[6[EA]9[5[EA]9[9[3[EA]9[3[EA]9[4[EA]]]]]]]]]]]]]]]9[5[C]9[2[C]9[5[C]9[7[C]9[2[C]9[7[C]9[2[C]9[4[C]9[6[C]9[5[C]9[9[3[C]9[3[C]9[4[C]]]]]]]]]]]]]]]...

result:

ok correct (length = 34318)

Test #65:

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

input:

99999999999998

output:

8[C]9[4[C]9[2[C]9[5[C]9[7[C]9[2[C]9[7[C]9[2[C]9[4[C]9[6[C]9[5[C]9[9[3[C]9[3[C]9[4[C]]]]]]]]]]]]]]]A7[EA]9[4[EA]9[2[EA]9[5[EA]9[7[EA]9[2[EA]9[7[EA]9[2[EA]9[4[EA]9[6[EA]9[5[EA]9[9[3[EA]9[3[EA]9[4[EA]]]]]]]]]]]]]]]7[C]9[4[C]9[2[C]9[5[C]9[7[C]9[2[C]9[7[C]9[2[C]9[4[C]9[6[C]9[5[C]9[9[3[C]9[3[C]9[4[C]]]]]]...

result:

ok correct (length = 39029)

Test #66:

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

input:

70368744177662

output:

5[C]9[2[C]9[9[5[C]9[5[C]9[7[C]9[2[C]9[2[C]9[9[5[C]9[3[C]9[1[C]9[6[C]9[9[3[C]]]]]]]]]]]]]]]A4[EA]9[2[EA]9[9[5[EA]9[5[EA]9[7[EA]9[2[EA]9[2[EA]9[9[5[EA]9[3[EA]9[1[EA]9[6[EA]9[9[3[EA]]]]]]]]]]]]]]]4[C]9[2[C]9[9[5[C]9[5[C]9[7[C]9[2[C]9[2[C]9[9[5[C]9[3[C]9[1[C]9[6[C]9[9[3[C]]]]]]]]]]]]]]]6[7[A]9[5[A]9[4[A...

result:

ok correct (length = 44152)

Test #67:

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

input:

70368744177664

output:

7[C]9[2[C]9[9[5[C]9[5[C]9[7[C]9[2[C]9[2[C]9[9[5[C]9[3[C]9[1[C]9[6[C]9[9[3[C]]]]]]]]]]]]]]]A6[EA]9[2[EA]9[9[5[EA]9[5[EA]9[7[EA]9[2[EA]9[2[EA]9[9[5[EA]9[3[EA]9[1[EA]9[6[EA]9[9[3[EA]]]]]]]]]]]]]]]6[C]9[2[C]9[9[5[C]9[5[C]9[7[C]9[2[C]9[2[C]9[9[5[C]9[3[C]9[1[C]9[6[C]9[9[3[C]]]]]]]]]]]]]]]7[8[A]9[5[A]9[4[A...

result:

ok correct (length = 35836)

Test #68:

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

input:

70368744177666

output:

9[3[C]9[9[5[C]9[5[C]9[7[C]9[2[C]9[2[C]9[9[5[C]9[3[C]9[1[C]9[6[C]9[9[3[C]]]]]]]]]]]]]]]A8[EA]9[2[EA]9[9[5[EA]9[5[EA]9[7[EA]9[2[EA]9[2[EA]9[9[5[EA]9[3[EA]9[1[EA]9[6[EA]9[9[3[EA]]]]]]]]]]]]]]]8[C]9[2[C]9[9[5[C]9[5[C]9[7[C]9[2[C]9[2[C]9[9[5[C]9[3[C]9[1[C]9[6[C]9[9[3[C]]]]]]]]]]]]]]]8[9[6[A]9[4[A]9[2[A]9...

result:

ok correct (length = 34249)

Test #69:

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

input:

52776558133245

output:

9[4[C]9[2[C]9[8[C]9[1[C]9[1[C]9[2[C]9[6[C]9[4[C]9[1[C]9[7[C]9[7[C]9[6[C]9[2[C]9[2[C]]]]]]]]]]]]]]]4[5[A]9[6[A]9[5[A]9[8[A]9[9[5[A]9[5[A]9[7[A]9[6[A]9[9[8[A]9[3[A]9[3[A]9[1[A]9[1[A]]]]]]]]]]]]]]]4[EC]9[6[EC]9[5[EC]9[8[EC]9[9[5[EC]9[5[EC]9[7[EC]9[6[EC]9[9[8[EC]9[3[EC]9[3[EC]9[1[EC]9[1[EC]]]]]]]]]]]]]]...

result:

ok correct (length = 40837)

Test #70:

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

input:

52776558133247

output:

2[C]9[4[C]9[2[C]9[8[C]9[1[C]9[1[C]9[2[C]9[6[C]9[4[C]9[1[C]9[7[C]9[7[C]9[6[C]9[2[C]9[2[C]]]]]]]]]]]]]]]5[6[A]9[6[A]9[5[A]9[8[A]9[9[5[A]9[5[A]9[7[A]9[6[A]9[9[8[A]9[3[A]9[3[A]9[1[A]9[1[A]]]]]]]]]]]]]]]5[EC]9[6[EC]9[5[EC]9[8[EC]9[9[5[EC]9[5[EC]9[7[EC]9[6[EC]9[9[8[EC]9[3[EC]9[3[EC]9[1[EC]9[1[EC]]]]]]]]]]...

result:

ok correct (length = 33589)

Test #71:

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

input:

68630377364881

output:

7[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[2[C]]]]]]]]]]]]]]]3[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[1[A]]]]]]]]]]]]]]]3[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[E...

result:

ok correct (length = 39200)

Test #72:

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

input:

68630377364883

output:

9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[C]]]]]]]]]]]]]]]4[5[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[1[A]]]]]]]]]]]]]]]4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[1[EC]]]]]]]]]]]]]]]E]9[4[5[A]9[4[A]9[4[A]9[4[A]9[4[A...

result:

ok correct (length = 39094)

Test #73:

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

input:

68630377364885

output:

2[C]9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[C]]]]]]]]]]]]]]]5[6[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[1[A]]]]]]]]]]]]]]]5[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[1[EC]]]]]]]]]]]]]]]E]9[4[6[A]9[4[A]9[4[A]9[4[A]9...

result:

ok correct (length = 39419)

Test #74:

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

input:

55459222121013

output:

6[C]9[3[C]9[8[C]9[5[C]9[3[C]9[6[C]9[5[C]9[4[C]9[8[C]9[4[C]9[2[C]9[3[C]9[7[C]9[3[C]9[2[C]]]]]]]]]]]]]]]7[8[A]9[1[A]9[4[A]9[7[A]9[1[A]9[3[A]9[7[A]9[6[A]9[8[A]9[6[A]9[5[A]9[1[A]9[8[A]9[1[A]9[1[A]]]]]]]]]]]]]]]7[EC]9[1[EC]9[4[EC]9[7[EC]9[1[EC]9[3[EC]9[7[EC]9[6[EC]9[8[EC]9[6[EC]9[5[EC]9[1[EC]9[8[EC]9[1[E...

result:

ok correct (length = 40514)

Test #75:

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

input:

55459222121015

output:

8[C]9[3[C]9[8[C]9[5[C]9[3[C]9[6[C]9[5[C]9[4[C]9[8[C]9[4[C]9[2[C]9[3[C]9[7[C]9[3[C]9[2[C]]]]]]]]]]]]]]]8[9[2[A]9[4[A]9[7[A]9[1[A]9[3[A]9[7[A]9[6[A]9[8[A]9[6[A]9[5[A]9[1[A]9[8[A]9[1[A]9[1[A]]]]]]]]]]]]]]]8[EC]9[1[EC]9[4[EC]9[7[EC]9[1[EC]9[3[EC]9[7[EC]9[6[EC]9[8[EC]9[6[EC]9[5[EC]9[1[EC]9[8[EC]9[1[EC]9[...

result:

ok correct (length = 40216)

Test #76:

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

input:

27729611060504

output:

5[C]9[1[C]9[4[C]9[7[C]9[1[C]9[3[C]9[7[C]9[6[C]9[8[C]9[6[C]9[5[C]9[1[C]9[8[C]9[1[C]9[1[C]]]]]]]]]]]]]]]A4[EA]9[1[EA]9[4[EA]9[7[EA]9[1[EA]9[3[EA]9[7[EA]9[6[EA]9[8[EA]9[6[EA]9[5[EA]9[1[EA]9[8[EA]9[1[EA]9[1[EA]]]]]]]]]]]]]]]4[C]9[1[C]9[4[C]9[7[C]9[1[C]9[3[C]9[7[C]9[6[C]9[8[C]9[6[C]9[5[C]9[1[C]9[8[C]9[1[...

result:

ok correct (length = 38035)

Test #77:

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

input:

27729611060506

output:

7[C]9[1[C]9[4[C]9[7[C]9[1[C]9[3[C]9[7[C]9[6[C]9[8[C]9[6[C]9[5[C]9[1[C]9[8[C]9[1[C]9[1[C]]]]]]]]]]]]]]]A6[EA]9[1[EA]9[4[EA]9[7[EA]9[1[EA]9[3[EA]9[7[EA]9[6[EA]9[8[EA]9[6[EA]9[5[EA]9[1[EA]9[8[EA]9[1[EA]9[1[EA]]]]]]]]]]]]]]]6[C]9[1[C]9[4[C]9[7[C]9[1[C]9[3[C]9[7[C]9[6[C]9[8[C]9[6[C]9[5[C]9[1[C]9[8[C]9[1[...

result:

ok correct (length = 38008)

Test #78:

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

input:

27729611060508

output:

9[2[C]9[4[C]9[7[C]9[1[C]9[3[C]9[7[C]9[6[C]9[8[C]9[6[C]9[5[C]9[1[C]9[8[C]9[1[C]9[1[C]]]]]]]]]]]]]]]A8[EA]9[1[EA]9[4[EA]9[7[EA]9[1[EA]9[3[EA]9[7[EA]9[6[EA]9[8[EA]9[6[EA]9[5[EA]9[1[EA]9[8[EA]9[1[EA]9[1[EA]]]]]]]]]]]]]]]8[C]9[1[C]9[4[C]9[7[C]9[1[C]9[3[C]9[7[C]9[6[C]9[8[C]9[6[C]9[5[C]9[1[C]9[8[C]9[1[C]9[...

result:

ok correct (length = 37993)

Test #79:

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

input:

98265127056417

output:

9[8[C]9[6[C]9[7[C]9[1[C]9[7[C]9[8[C]9[1[C]9[4[C]9[1[C]9[3[C]9[8[C]9[5[C]9[2[C]9[4[C]]]]]]]]]]]]]]]4[5[A]9[8[A]9[7[A]9[3[A]9[5[A]9[3[A]9[4[A]9[5[A]9[6[A]9[9[6[A]9[8[A]9[2[A]9[1[A]9[2[A]]]]]]]]]]]]]]]4[EC]9[8[EC]9[7[EC]9[3[EC]9[5[EC]9[3[EC]9[4[EC]9[5[EC]9[6[EC]9[9[6[EC]9[8[EC]9[2[EC]9[1[EC]9[2[EC]]]]]...

result:

ok correct (length = 43398)

Test #80:

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

input:

77266484892551

output:

2[C]9[6[C]9[5[C]9[6[C]9[2[C]9[8[C]9[4[C]9[6[C]9[2[C]9[7[C]9[1[C]9[5[C]9[3[C]9[3[C]9[3[C]]]]]]]]]]]]]]]5[6[A]9[7[A]9[2[A]9[3[A]9[1[A]9[4[A]9[2[A]9[3[A]9[1[A]9[8[A]9[9[7[A]9[1[A]9[6[A]9[1[A]]]]]]]]]]]]]]]5[EC]9[7[EC]9[2[EC]9[3[EC]9[1[EC]9[4[EC]9[2[EC]9[3[EC]9[1[EC]9[8[EC]9[9[7[EC]9[1[EC]9[6[EC]9[1[EC]...

result:

ok correct (length = 41192)

Test #81:

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

input:

81210899695837

output:

4[C]9[5[C]9[3[C]9[1[C]9[3[C]9[2[C]9[6[C]9[6[C]9[4[C]9[9[8[C]9[4[C]9[8[C]9[4[C]9[3[C]]]]]]]]]]]]]]]6[7[A]9[2[A]9[6[A]9[9[6[A]9[5[A]9[7[A]9[7[A]9[6[A]9[4[A]9[8[A]9[6[A]9[8[A]9[6[A]9[1[A]]]]]]]]]]]]]]]6[EC]9[2[EC]9[6[EC]9[9[6[EC]9[5[EC]9[7[EC]9[7[EC]9[6[EC]9[4[EC]9[8[EC]9[6[EC]9[8[EC]9[6[EC]9[1[EC]]]]]...

result:

ok correct (length = 28844)

Test #82:

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

input:

80190850810832

output:

8[C]9[3[C]9[9[2[C]9[8[C]9[2[C]9[7[C]9[3[C]9[5[C]9[4[C]9[3[C]9[8[C]9[4[C]9[4[C]9[3[C]]]]]]]]]]]]]]]A7[EA]9[3[EA]9[9[2[EA]9[8[EA]9[2[EA]9[7[EA]9[3[EA]9[5[EA]9[4[EA]9[3[EA]9[8[EA]9[4[EA]9[4[EA]9[3[EA]]]]]]]]]]]]]]]7[C]9[3[C]9[9[2[C]9[8[C]9[2[C]9[7[C]9[3[C]9[5[C]9[4[C]9[3[C]9[8[C]9[4[C]9[4[C]9[3[C]]]]]]...

result:

ok correct (length = 42214)

Test #83:

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

input:

70846470793836

output:

9[2[C]9[6[C]9[2[C]9[7[C]9[6[C]9[9[1[C]9[1[C]9[5[C]9[5[C]9[7[C]9[7[C]9[9[3[C]]]]]]]]]]]]]]]A8[EA]9[1[EA]9[6[EA]9[2[EA]9[7[EA]9[6[EA]9[9[1[EA]9[1[EA]9[5[EA]9[5[EA]9[7[EA]9[7[EA]9[9[3[EA]]]]]]]]]]]]]]]8[C]9[1[C]9[6[C]9[2[C]9[7[C]9[6[C]9[9[1[C]9[1[C]9[5[C]9[5[C]9[7[C]9[7[C]9[9[3[C]]]]]]]]]]]]]]]8[9[1[A]...

result:

ok correct (length = 35827)

Subtask #8:

score: 1
Accepted

Test #84:

score: 1
Accepted
time: 3ms
memory: 3660kb

input:

99999999999999

output:

9[5[C]9[2[C]9[5[C]9[7[C]9[2[C]9[7[C]9[2[C]9[4[C]9[6[C]9[5[C]9[9[3[C]9[3[C]9[4[C]]]]]]]]]]]]]]]4[5[A]9[2[A]9[1[A]9[7[A]9[3[A]9[1[A]9[8[A]9[5[A]9[6[A]9[7[A]9[2[A]9[9[6[A]9[1[A]9[2[A]]]]]]]]]]]]]]]4[EC]9[2[EC]9[1[EC]9[7[EC]9[3[EC]9[1[EC]9[8[EC]9[5[EC]9[6[EC]9[7[EC]9[2[EC]9[9[6[EC]9[1[EC]9[2[EC]]]]]]]]]...

result:

ok correct (length = 34195)

Test #85:

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

input:

99999999999997

output:

7[C]9[4[C]9[2[C]9[5[C]9[7[C]9[2[C]9[7[C]9[2[C]9[4[C]9[6[C]9[5[C]9[9[3[C]9[3[C]9[4[C]]]]]]]]]]]]]]]3[4[A]9[2[A]9[1[A]9[7[A]9[3[A]9[1[A]9[8[A]9[5[A]9[6[A]9[7[A]9[2[A]9[9[6[A]9[1[A]9[2[A]]]]]]]]]]]]]]]3[EC]9[2[EC]9[1[EC]9[7[EC]9[3[EC]9[1[EC]9[8[EC]9[5[EC]9[6[EC]9[7[EC]9[2[EC]9[9[6[EC]9[1[EC]9[2[EC]]]]]...

result:

ok correct (length = 38724)

Test #86:

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

input:

70368744177663

output:

6[C]9[2[C]9[9[5[C]9[5[C]9[7[C]9[2[C]9[2[C]9[9[5[C]9[3[C]9[1[C]9[6[C]9[9[3[C]]]]]]]]]]]]]]]7[8[A]9[5[A]9[4[A]9[2[A]9[7[A]9[3[A]9[1[A]9[1[A]9[9[7[A]9[1[A]9[5[A]9[7[A]9[4[A]9[1[A]]]]]]]]]]]]]]]7[EC]9[5[EC]9[4[EC]9[2[EC]9[7[EC]9[3[EC]9[1[EC]9[1[EC]9[9[7[EC]9[1[EC]9[5[EC]9[7[EC]9[4[EC]9[1[EC]]]]]]]]]]]]]...

result:

ok correct (length = 35732)

Test #87:

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

input:

70368744177665

output:

8[C]9[2[C]9[9[5[C]9[5[C]9[7[C]9[2[C]9[2[C]9[9[5[C]9[3[C]9[1[C]9[6[C]9[9[3[C]]]]]]]]]]]]]]]8[9[6[A]9[4[A]9[2[A]9[7[A]9[3[A]9[1[A]9[1[A]9[9[7[A]9[1[A]9[5[A]9[7[A]9[4[A]9[1[A]]]]]]]]]]]]]]]8[EC]9[5[EC]9[4[EC]9[2[EC]9[7[EC]9[3[EC]9[1[EC]9[1[EC]9[9[7[EC]9[1[EC]9[5[EC]9[7[EC]9[4[EC]9[1[EC]]]]]]]]]]]]]]]E]...

result:

ok correct (length = 34140)

Test #88:

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

input:

52776558133244

output:

8[C]9[3[C]9[2[C]9[8[C]9[1[C]9[1[C]9[2[C]9[6[C]9[4[C]9[1[C]9[7[C]9[7[C]9[6[C]9[2[C]9[2[C]]]]]]]]]]]]]]]A7[EA]9[3[EA]9[2[EA]9[8[EA]9[1[EA]9[1[EA]9[2[EA]9[6[EA]9[4[EA]9[1[EA]9[7[EA]9[7[EA]9[6[EA]9[2[EA]9[2[EA]]]]]]]]]]]]]]]7[C]9[3[C]9[2[C]9[8[C]9[1[C]9[1[C]9[2[C]9[6[C]9[4[C]9[1[C]9[7[C]9[7[C]9[6[C]9[2[...

result:

ok correct (length = 40843)

Test #89:

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

input:

52776558133246

output:

1[C]9[4[C]9[2[C]9[8[C]9[1[C]9[1[C]9[2[C]9[6[C]9[4[C]9[1[C]9[7[C]9[7[C]9[6[C]9[2[C]9[2[C]]]]]]]]]]]]]]]A9[4[EA]9[2[EA]9[8[EA]9[1[EA]9[1[EA]9[2[EA]9[6[EA]9[4[EA]9[1[EA]9[7[EA]9[7[EA]9[6[EA]9[2[EA]9[2[EA]]]]]]]]]]]]]]]9[4[C]9[2[C]9[8[C]9[1[C]9[1[C]9[2[C]9[6[C]9[4[C]9[1[C]9[7[C]9[7[C]9[6[C]9[2[C]9[2[C]]...

result:

ok correct (length = 41162)

Test #90:

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

input:

52776558133248

output:

3[C]9[4[C]9[2[C]9[8[C]9[1[C]9[1[C]9[2[C]9[6[C]9[4[C]9[1[C]9[7[C]9[7[C]9[6[C]9[2[C]9[2[C]]]]]]]]]]]]]]]A2[EA]9[4[EA]9[2[EA]9[8[EA]9[1[EA]9[1[EA]9[2[EA]9[6[EA]9[4[EA]9[1[EA]9[7[EA]9[7[EA]9[6[EA]9[2[EA]9[2[EA]]]]]]]]]]]]]]]2[C]9[4[C]9[2[C]9[8[C]9[1[C]9[1[C]9[2[C]9[6[C]9[4[C]9[1[C]9[7[C]9[7[C]9[6[C]9[2[...

result:

ok correct (length = 33693)

Test #91:

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

input:

68630377364882

output:

8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[2[C]]]]]]]]]]]]]]]A7[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[2[EA]]]]]]]]]]]]]]]7[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[...

result:

ok correct (length = 39500)

Test #92:

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

input:

68630377364884

output:

1[C]9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[C]]]]]]]]]]]]]]]A9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[EA]]]]]]]]]]]]]]]9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[C]]]]]]]]]]]]]]]4[5[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[1[A]]]]]]]]]]]]]]]4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[E...

result:

ok correct (length = 39190)

Test #93:

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

input:

55459222121012

output:

5[C]9[3[C]9[8[C]9[5[C]9[3[C]9[6[C]9[5[C]9[4[C]9[8[C]9[4[C]9[2[C]9[3[C]9[7[C]9[3[C]9[2[C]]]]]]]]]]]]]]]A4[EA]9[3[EA]9[8[EA]9[5[EA]9[3[EA]9[6[EA]9[5[EA]9[4[EA]9[8[EA]9[4[EA]9[2[EA]9[3[EA]9[7[EA]9[3[EA]9[2[EA]]]]]]]]]]]]]]]4[C]9[3[C]9[8[C]9[5[C]9[3[C]9[6[C]9[5[C]9[4[C]9[8[C]9[4[C]9[2[C]9[3[C]9[7[C]9[3[...

result:

ok correct (length = 40179)

Test #94:

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

input:

55459222121014

output:

7[C]9[3[C]9[8[C]9[5[C]9[3[C]9[6[C]9[5[C]9[4[C]9[8[C]9[4[C]9[2[C]9[3[C]9[7[C]9[3[C]9[2[C]]]]]]]]]]]]]]]A6[EA]9[3[EA]9[8[EA]9[5[EA]9[3[EA]9[6[EA]9[5[EA]9[4[EA]9[8[EA]9[4[EA]9[2[EA]9[3[EA]9[7[EA]9[3[EA]9[2[EA]]]]]]]]]]]]]]]6[C]9[3[C]9[8[C]9[5[C]9[3[C]9[6[C]9[5[C]9[4[C]9[8[C]9[4[C]9[2[C]9[3[C]9[7[C]9[3[...

result:

ok correct (length = 40833)

Test #95:

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

input:

55459222121016

output:

9[4[C]9[8[C]9[5[C]9[3[C]9[6[C]9[5[C]9[4[C]9[8[C]9[4[C]9[2[C]9[3[C]9[7[C]9[3[C]9[2[C]]]]]]]]]]]]]]]A8[EA]9[3[EA]9[8[EA]9[5[EA]9[3[EA]9[6[EA]9[5[EA]9[4[EA]9[8[EA]9[4[EA]9[2[EA]9[3[EA]9[7[EA]9[3[EA]9[2[EA]]]]]]]]]]]]]]]8[C]9[3[C]9[8[C]9[5[C]9[3[C]9[6[C]9[5[C]9[4[C]9[8[C]9[4[C]9[2[C]9[3[C]9[7[C]9[3[C]9[...

result:

ok correct (length = 40535)

Test #96:

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

input:

27729611060505

output:

6[C]9[1[C]9[4[C]9[7[C]9[1[C]9[3[C]9[7[C]9[6[C]9[8[C]9[6[C]9[5[C]9[1[C]9[8[C]9[1[C]9[1[C]]]]]]]]]]]]]]]7[8[A]9[9[2[A]9[8[A]9[9[6[A]9[3[A]9[3[A]9[4[A]9[3[A]9[7[A]9[9[4[A]9[5[A]]]]]]]]]]]]]]7[EC]9[9[2[EC]9[8[EC]9[9[6[EC]9[3[EC]9[3[EC]9[4[EC]9[3[EC]9[7[EC]9[9[4[EC]9[5[EC]]]]]]]]]]]]]]E]9[9[2[8[A]9[9[2[A...

result:

ok correct (length = 37696)

Test #97:

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

input:

27729611060507

output:

8[C]9[1[C]9[4[C]9[7[C]9[1[C]9[3[C]9[7[C]9[6[C]9[8[C]9[6[C]9[5[C]9[1[C]9[8[C]9[1[C]9[1[C]]]]]]]]]]]]]]]8[9[1[A]9[2[A]9[8[A]9[9[6[A]9[3[A]9[3[A]9[4[A]9[3[A]9[7[A]9[9[4[A]9[5[A]]]]]]]]]]]]]]8[EC]9[9[2[EC]9[8[EC]9[9[6[EC]9[3[EC]9[3[EC]9[4[EC]9[3[EC]9[7[EC]9[9[4[EC]9[5[EC]]]]]]]]]]]]]]E]9[9[2[9[1[A]9[2[A...

result:

ok correct (length = 37674)

Test #98:

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

input:

84114608065041

output:

3[C]9[2[C]9[7[C]9[8[C]9[4[C]9[7[C]9[8[C]9[4[C]9[4[C]9[7[C]9[3[C]9[7[C]9[9[6[C]9[3[C]]]]]]]]]]]]]]]1[2[A]9[1[A]9[8[A]9[8[A]9[6[A]9[3[A]9[4[A]9[2[A]9[2[A]9[8[A]9[1[A]9[8[A]9[4[A]9[7[A]9[1[A]]]]]]]]]]]]]]]1[EC]9[1[EC]9[8[EC]9[8[EC]9[6[EC]9[3[EC]9[4[EC]9[2[EC]9[2[EC]9[8[EC]9[1[EC]9[8[EC]9[4[EC]9[7[EC]9[...

result:

ok correct (length = 40374)

Test #99:

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

input:

89212498272650

output:

2[C]9[5[C]9[3[C]9[6[C]9[7[C]9[5[C]9[1[C]9[4[C]9[9[8[C]9[7[C]9[7[C]9[9[8[C]9[3[C]]]]]]]]]]]]]]]A1[EA]9[5[EA]9[3[EA]9[6[EA]9[7[EA]9[5[EA]9[1[EA]9[4[EA]9[9[8[EA]9[7[EA]9[7[EA]9[9[8[EA]9[3[EA]]]]]]]]]]]]]]]1[C]9[5[C]9[3[C]9[6[C]9[7[C]9[5[C]9[1[C]9[4[C]9[9[8[C]9[7[C]9[7[C]9[9[8[C]9[3[C]]]]]]]]]]]]]]]9[7[...

result:

ok correct (length = 37736)

Test #100:

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

input:

70436663494221

output:

3[C]9[2[C]9[7[C]9[7[C]9[1[C]9[9[5[C]9[9[3[C]9[9[5[C]9[3[C]9[6[C]9[9[3[C]]]]]]]]]]]]]]]1[2[A]9[1[A]9[8[A]9[3[A]9[5[A]9[4[A]9[2[A]9[9[6[A]9[4[A]9[2[A]9[6[A]9[7[A]9[4[A]9[1[A]]]]]]]]]]]]]]]1[EC]9[1[EC]9[8[EC]9[3[EC]9[5[EC]9[4[EC]9[2[EC]9[9[6[EC]9[4[EC]9[2[EC]9[6[EC]9[7[EC]9[4[EC]9[1[EC]]]]]]]]]]]]]]]E]...

result:

ok correct (length = 38981)

Test #101:

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

input:

80348579733871

output:

1[C]9[2[C]9[1[C]9[6[C]9[9[1[C]9[9[5[C]9[6[C]9[6[C]9[3[C]9[4[C]9[5[C]9[4[C]9[3[C]]]]]]]]]]]]]]]9[1[1[A]9[1[A]9[5[A]9[7[A]9[4[A]9[9[9[7[A]9[7[A]9[7[A]9[1[A]9[2[A]9[7[A]9[6[A]9[1[A]]]]]]]]]]]]]]]9[1[EC]9[5[EC]9[7[EC]9[4[EC]9[9[9[7[EC]9[7[EC]9[7[EC]9[1[EC]9[2[EC]9[7[EC]9[6[EC]9[1[EC]]]]]]]]]]]]]]]E]9[5[...

result:

ok correct (length = 36888)

Test #102:

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

input:

70184495150934

output:

6[C]9[8[C]9[7[C]9[4[C]9[1[C]9[7[C]9[3[C]9[9[4[C]9[6[C]9[4[C]9[4[C]9[5[C]9[9[3[C]]]]]]]]]]]]]]]A5[EA]9[8[EA]9[7[EA]9[4[EA]9[1[EA]9[7[EA]9[3[EA]9[9[4[EA]9[6[EA]9[4[EA]9[4[EA]9[5[EA]9[9[3[EA]]]]]]]]]]]]]]]5[C]9[8[C]9[7[C]9[4[C]9[1[C]9[7[C]9[3[C]9[9[4[C]9[6[C]9[4[C]9[4[C]9[5[C]9[9[3[C]]]]]]]]]]]]]]]2[3[...

result:

ok correct (length = 41484)

Subtask #9:

score: 1
Accepted

Test #103:

score: 1
Accepted
time: 2ms
memory: 3708kb

input:

1000000000000000000

output:

1[C]9[9[2[C]9[5[C]9[2[C]9[8[C]9[6[C]9[3[C]9[6[C]9[9[4[C]9[1[C]9[7[C]9[3[C]9[8[C]9[5[C]9[8[C]9[5[C]9[6[C]]]]]]]]]]]]]]]]]]]A9[9[2[EA]9[5[EA]9[2[EA]9[8[EA]9[6[EA]9[3[EA]9[6[EA]9[9[4[EA]9[1[EA]9[7[EA]9[3[EA]9[8[EA]9[5[EA]9[8[EA]9[5[EA]9[6[EA]]]]]]]]]]]]]]]]]]]9[9[2[C]9[5[C]9[2[C]9[8[C]9[6[C]9[3[C]9[6[C...

result:

ok correct (length = 72424)

Test #104:

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

input:

999999999999999998

output:

8[C]9[8[C]9[1[C]9[5[C]9[2[C]9[8[C]9[6[C]9[3[C]9[6[C]9[9[4[C]9[1[C]9[7[C]9[3[C]9[8[C]9[5[C]9[8[C]9[5[C]9[6[C]]]]]]]]]]]]]]]]]]]A7[EA]9[8[EA]9[1[EA]9[5[EA]9[2[EA]9[8[EA]9[6[EA]9[3[EA]9[6[EA]9[9[4[EA]9[1[EA]9[7[EA]9[3[EA]9[8[EA]9[5[EA]9[8[EA]9[5[EA]9[6[EA]]]]]]]]]]]]]]]]]]]7[C]9[8[C]9[1[C]9[5[C]9[2[C]9...

result:

ok correct (length = 80372)

Test #105:

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

input:

576460752303423486

output:

3[C]9[3[C]9[8[C]9[2[C]9[2[C]9[7[C]9[7[C]9[2[C]9[2[C]9[1[C]9[2[C]9[1[C]9[4[C]9[4[C]9[7[C]9[9[5[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]]A2[EA]9[3[EA]9[8[EA]9[2[EA]9[2[EA]9[7[EA]9[7[EA]9[2[EA]9[2[EA]9[1[EA]9[2[EA]9[1[EA]9[4[EA]9[4[EA]9[7[EA]9[9[5[EA]9[7[EA]9[3[EA]]]]]]]]]]]]]]]]]]]2[C]9[3[C]9[8[C]9[2[C]9[2[C]9...

result:

ok correct (length = 80352)

Test #106:

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

input:

576460752303423488

output:

5[C]9[3[C]9[8[C]9[2[C]9[2[C]9[7[C]9[7[C]9[2[C]9[2[C]9[1[C]9[2[C]9[1[C]9[4[C]9[4[C]9[7[C]9[9[5[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]]A4[EA]9[3[EA]9[8[EA]9[2[EA]9[2[EA]9[7[EA]9[7[EA]9[2[EA]9[2[EA]9[1[EA]9[2[EA]9[1[EA]9[4[EA]9[4[EA]9[7[EA]9[9[5[EA]9[7[EA]9[3[EA]]]]]]]]]]]]]]]]]]]4[C]9[3[C]9[8[C]9[2[C]9[2[C]9...

result:

ok correct (length = 65085)

Test #107:

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

input:

576460752303423490

output:

7[C]9[3[C]9[8[C]9[2[C]9[2[C]9[7[C]9[7[C]9[2[C]9[2[C]9[1[C]9[2[C]9[1[C]9[4[C]9[4[C]9[7[C]9[9[5[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]]A6[EA]9[3[EA]9[8[EA]9[2[EA]9[2[EA]9[7[EA]9[7[EA]9[2[EA]9[2[EA]9[1[EA]9[2[EA]9[1[EA]9[4[EA]9[4[EA]9[7[EA]9[9[5[EA]9[7[EA]9[3[EA]]]]]]]]]]]]]]]]]]]6[C]9[3[C]9[8[C]9[2[C]9[2[C]9...

result:

ok correct (length = 62945)

Test #108:

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

input:

864691128455135229

output:

9[5[C]9[3[C]9[4[C]9[3[C]9[6[C]9[2[C]9[4[C]9[3[C]9[6[C]9[7[C]9[1[C]9[6[C]9[6[C]9[6[C]9[5[C]9[7[C]9[6[C]9[5[C]]]]]]]]]]]]]]]]]]]4[5[A]9[2[A]9[6[A]9[6[A]9[1[A]9[3[A]9[1[A]9[2[A]9[6[A]9[7[A]9[3[A]9[5[A]9[7[A]9[7[A]9[7[A]9[2[A]9[8[A]9[7[A]9[2[A]]]]]]]]]]]]]]]]]]]4[EC]9[2[EC]9[6[EC]9[6[EC]9[1[EC]9[3[EC]9[...

result:

ok correct (length = 82128)

Test #109:

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

input:

864691128455135231

output:

2[C]9[5[C]9[3[C]9[4[C]9[3[C]9[6[C]9[2[C]9[4[C]9[3[C]9[6[C]9[7[C]9[1[C]9[6[C]9[6[C]9[6[C]9[5[C]9[7[C]9[6[C]9[5[C]]]]]]]]]]]]]]]]]]]5[6[A]9[2[A]9[6[A]9[6[A]9[1[A]9[3[A]9[1[A]9[2[A]9[6[A]9[7[A]9[3[A]9[5[A]9[7[A]9[7[A]9[7[A]9[2[A]9[8[A]9[7[A]9[2[A]]]]]]]]]]]]]]]]]]]5[EC]9[2[EC]9[6[EC]9[6[EC]9[1[EC]9[3[E...

result:

ok correct (length = 68487)

Test #110:

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

input:

450283905890997361

output:

7[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[2[C]]]]]]]]]]]]]]]]]]]3[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[1[A]]]]]]]]]]]]]]]]]]]3[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[E...

result:

ok correct (length = 77534)

Test #111:

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

input:

450283905890997363

output:

9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[C]]]]]]]]]]]]]]]]]]]4[5[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[1[A]]]]]]]]]]]]]]]]]]]4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]...

result:

ok correct (length = 76964)

Test #112:

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

input:

450283905890997365

output:

2[C]9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[C]]]]]]]]]]]]]]]]]]]5[6[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[1[A]]]]]]]]]]]]]]]]]]]5[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4[EC]9[4...

result:

ok correct (length = 77384)

Test #113:

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

input:

766668286600904005

output:

7[C]9[4[C]9[5[C]9[8[C]9[9[5[C]9[3[C]9[7[C]9[8[C]9[1[C]9[1[C]9[1[C]9[3[C]9[8[C]9[5[C]9[6[C]9[8[C]9[9[5[C]]]]]]]]]]]]]]]]]]]3[4[A]9[2[A]9[7[A]9[8[A]9[4[A]9[2[A]9[6[A]9[3[A]9[4[A]9[5[A]9[9[5[A]9[1[A]9[4[A]9[7[A]9[7[A]9[8[A]9[4[A]9[2[A]]]]]]]]]]]]]]]]]]]3[EC]9[2[EC]9[7[EC]9[8[EC]9[4[EC]9[2[EC]9[6[EC]9[3...

result:

ok correct (length = 84224)

Test #114:

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

input:

766668286600904007

output:

9[5[C]9[5[C]9[8[C]9[9[5[C]9[3[C]9[7[C]9[8[C]9[1[C]9[1[C]9[1[C]9[3[C]9[8[C]9[5[C]9[6[C]9[8[C]9[9[5[C]]]]]]]]]]]]]]]]]]]4[5[A]9[2[A]9[7[A]9[8[A]9[4[A]9[2[A]9[6[A]9[3[A]9[4[A]9[5[A]9[9[5[A]9[1[A]9[4[A]9[7[A]9[7[A]9[8[A]9[4[A]9[2[A]]]]]]]]]]]]]]]]]]]4[EC]9[2[EC]9[7[EC]9[8[EC]9[4[EC]9[2[EC]9[6[EC]9[3[EC]...

result:

ok correct (length = 83719)

Test #115:

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

input:

127778047766817332

output:

5[C]9[3[C]9[8[C]9[5[C]9[7[C]9[9[2[C]9[4[C]9[7[C]9[1[C]9[6[C]9[4[C]9[3[C]9[4[C]9[5[C]9[8[C]9[5[C]9[7[C]]]]]]]]]]]]]]]]]]A4[EA]9[3[EA]9[8[EA]9[5[EA]9[7[EA]9[9[2[EA]9[4[EA]9[7[EA]9[1[EA]9[6[EA]9[4[EA]9[3[EA]9[4[EA]9[5[EA]9[8[EA]9[5[EA]9[7[EA]]]]]]]]]]]]]]]]]]4[C]9[3[C]9[8[C]9[5[C]9[7[C]9[9[2[C]9[4[C]9[...

result:

ok correct (length = 72337)

Test #116:

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

input:

127778047766817334

output:

7[C]9[3[C]9[8[C]9[5[C]9[7[C]9[9[2[C]9[4[C]9[7[C]9[1[C]9[6[C]9[4[C]9[3[C]9[4[C]9[5[C]9[8[C]9[5[C]9[7[C]]]]]]]]]]]]]]]]]]A6[EA]9[3[EA]9[8[EA]9[5[EA]9[7[EA]9[9[2[EA]9[4[EA]9[7[EA]9[1[EA]9[6[EA]9[4[EA]9[3[EA]9[4[EA]9[5[EA]9[8[EA]9[5[EA]9[7[EA]]]]]]]]]]]]]]]]]]6[C]9[3[C]9[8[C]9[5[C]9[7[C]9[9[2[C]9[4[C]9[...

result:

ok correct (length = 73223)

Test #117:

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

input:

127778047766817336

output:

9[4[C]9[8[C]9[5[C]9[7[C]9[9[2[C]9[4[C]9[7[C]9[1[C]9[6[C]9[4[C]9[3[C]9[4[C]9[5[C]9[8[C]9[5[C]9[7[C]]]]]]]]]]]]]]]]]]A8[EA]9[3[EA]9[8[EA]9[5[EA]9[7[EA]9[9[2[EA]9[4[EA]9[7[EA]9[1[EA]9[6[EA]9[4[EA]9[3[EA]9[4[EA]9[5[EA]9[8[EA]9[5[EA]9[7[EA]]]]]]]]]]]]]]]]]]8[C]9[3[C]9[8[C]9[5[C]9[7[C]9[9[2[C]9[4[C]9[7[C]...

result:

ok correct (length = 73186)

Test #118:

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

input:

63889023883408665

output:

6[C]9[1[C]9[4[C]9[7[C]9[3[C]9[9[1[C]9[2[C]9[8[C]9[9[3[C]9[2[C]9[6[C]9[6[C]9[2[C]9[4[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]7[8[A]9[9[2[A]9[8[A]9[1[A]9[9[5[A]9[5[A]9[8[A]9[4[A]9[1[A]9[1[A]9[3[A]9[3[A]9[1[A]9[2[A]9[8[A]9[1[A]]]]]]]]]]]]]]]]]]7[EC]9[9[2[EC]9[8[EC]9[1[EC]9[9[5[EC]9[5[EC]9[8[EC]9[4[EC]9[1[EC]9[1...

result:

ok correct (length = 68337)

Test #119:

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

input:

63889023883408667

output:

8[C]9[1[C]9[4[C]9[7[C]9[3[C]9[9[1[C]9[2[C]9[8[C]9[9[3[C]9[2[C]9[6[C]9[6[C]9[2[C]9[4[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]8[9[1[A]9[2[A]9[8[A]9[1[A]9[9[5[A]9[5[A]9[8[A]9[4[A]9[1[A]9[1[A]9[3[A]9[3[A]9[1[A]9[2[A]9[8[A]9[1[A]]]]]]]]]]]]]]]]]]8[EC]9[9[2[EC]9[8[EC]9[1[EC]9[9[5[EC]9[5[EC]9[8[EC]9[4[EC]9[1[EC]9[1...

result:

ok correct (length = 68720)

Test #120:

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

input:

985959861360127245

output:

9[3[C]9[9[5[C]9[4[C]9[3[C]9[4[C]9[9[7[C]9[5[C]9[3[C]9[1[C]9[2[C]9[6[C]9[6[C]9[9[1[C]9[5[C]9[6[C]]]]]]]]]]]]]]]]]]]4[5[A]9[1[A]9[9[7[A]9[6[A]9[1[A]9[2[A]9[9[8[A]9[2[A]9[6[A]9[9[1[A]9[3[A]9[3[A]9[9[5[A]9[2[A]9[3[A]]]]]]]]]]]]]]]]]]]4[EC]9[1[EC]9[9[7[EC]9[6[EC]9[1[EC]9[2[EC]9[9[8[EC]9[2[EC]9[6[EC]9[9[1...

result:

ok correct (length = 89268)

Test #121:

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

input:

985959861360127247

output:

2[C]9[3[C]9[9[5[C]9[4[C]9[3[C]9[4[C]9[9[7[C]9[5[C]9[3[C]9[1[C]9[2[C]9[6[C]9[6[C]9[9[1[C]9[5[C]9[6[C]]]]]]]]]]]]]]]]]]]5[6[A]9[1[A]9[9[7[A]9[6[A]9[1[A]9[2[A]9[9[8[A]9[2[A]9[6[A]9[9[1[A]9[3[A]9[3[A]9[9[5[A]9[2[A]9[3[A]]]]]]]]]]]]]]]]]]]5[EC]9[1[EC]9[9[7[EC]9[6[EC]9[1[EC]9[2[EC]9[9[8[EC]9[2[EC]9[6[EC]9...

result:

ok correct (length = 88310)

Test #122:

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

input:

985959861360127249

output:

4[C]9[3[C]9[9[5[C]9[4[C]9[3[C]9[4[C]9[9[7[C]9[5[C]9[3[C]9[1[C]9[2[C]9[6[C]9[6[C]9[9[1[C]9[5[C]9[6[C]]]]]]]]]]]]]]]]]]]6[7[A]9[1[A]9[9[7[A]9[6[A]9[1[A]9[2[A]9[9[8[A]9[2[A]9[6[A]9[9[1[A]9[3[A]9[3[A]9[9[5[A]9[2[A]9[3[A]]]]]]]]]]]]]]]]]]]6[EC]9[1[EC]9[9[7[EC]9[6[EC]9[1[EC]9[2[EC]9[9[8[EC]9[2[EC]9[6[EC]9...

result:

ok correct (length = 88285)

Test #123:

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

input:

916549473760286520

output:

3[C]9[8[C]9[7[C]9[1[C]9[9[4[C]9[2[C]9[2[C]9[9[8[C]9[2[C]9[3[C]9[3[C]9[5[C]9[5[C]9[5[C]9[8[C]9[9[6[C]]]]]]]]]]]]]]]]]]]A2[EA]9[8[EA]9[7[EA]9[1[EA]9[9[4[EA]9[2[EA]9[2[EA]9[9[8[EA]9[2[EA]9[3[EA]9[3[EA]9[5[EA]9[5[EA]9[5[EA]9[8[EA]9[9[6[EA]]]]]]]]]]]]]]]]]]]2[C]9[8[C]9[7[C]9[1[C]9[9[4[C]9[2[C]9[2[C]9[9[8...

result:

ok correct (length = 69190)

Test #124:

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

input:

856433460734226894

output:

3[C]9[1[C]9[1[C]9[6[C]9[8[C]9[8[C]9[6[C]9[5[C]9[5[C]9[6[C]9[9[2[C]9[9[7[C]9[5[C]9[1[C]9[3[C]9[6[C]9[5[C]]]]]]]]]]]]]]]]]]]A2[EA]9[1[EA]9[1[EA]9[6[EA]9[8[EA]9[8[EA]9[6[EA]9[5[EA]9[5[EA]9[6[EA]9[9[2[EA]9[9[7[EA]9[5[EA]9[1[EA]9[3[EA]9[6[EA]9[5[EA]]]]]]]]]]]]]]]]]]]2[C]9[1[C]9[1[C]9[6[C]9[8[C]9[8[C]9[6[...

result:

ok correct (length = 74288)

Test #125:

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

input:

901931296179276805

output:

4[C]9[1[C]9[1[C]9[5[C]9[3[C]9[6[C]9[8[C]9[8[C]9[4[C]9[4[C]9[2[C]9[6[C]9[3[C]9[5[C]9[5[C]9[6[C]9[9[9[6[C]]]]]]]]]]]]]]]]]]]6[7[A]9[9[5[A]9[2[A]9[6[A]9[7[A]9[8[A]9[8[A]9[6[A]9[6[A]9[5[A]9[7[A]9[1[A]9[7[A]9[2[A]9[3[A]9[9[9[3[A]]]]]]]]]]]]]]]]]]]6[EC]9[9[5[EC]9[2[EC]9[6[EC]9[7[EC]9[8[EC]9[8[EC]9[6[EC]9[...

result:

ok correct (length = 65368)

Test #126:

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

input:

868116199581651414

output:

3[C]9[5[C]9[6[C]9[4[C]9[9[1[C]9[6[C]9[6[C]9[5[C]9[4[C]9[3[C]9[3[C]9[1[C]9[4[C]9[3[C]9[4[C]9[9[7[C]9[5[C]]]]]]]]]]]]]]]]]]]A2[EA]9[5[EA]9[6[EA]9[4[EA]9[9[1[EA]9[6[EA]9[6[EA]9[5[EA]9[4[EA]9[3[EA]9[3[EA]9[1[EA]9[4[EA]9[3[EA]9[4[EA]9[9[7[EA]9[5[EA]]]]]]]]]]]]]]]]]]]2[C]9[5[C]9[6[C]9[4[C]9[9[1[C]9[6[C]9[...

result:

ok correct (length = 80525)

Test #127:

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

input:

714918409325888175

output:

9[9[9[9[2[C]9[7[C]9[8[C]9[4[C]9[2[C]9[3[C]9[1[C]9[9[3[C]9[7[C]9[2[C]9[7[C]9[7[C]9[6[C]9[4[C]]]]]]]]]]]]]]]]]]]4[5[A]9[4[A]9[4[A]9[4[A]9[5[A]9[3[A]9[4[A]9[2[A]9[1[A]9[6[A]9[9[9[6[A]9[3[A]9[1[A]9[8[A]9[3[A]9[3[A]9[2[A]]]]]]]]]]]]]]]]]]]4[EC]9[4[EC]9[4[EC]9[4[EC]9[5[EC]9[3[EC]9[4[EC]9[2[EC]9[1[EC]9[6[E...

result:

ok correct (length = 80033)

Subtask #10:

score: 1
Accepted

Test #128:

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

input:

999999999999999999

output:

9[9[2[C]9[5[C]9[2[C]9[8[C]9[6[C]9[3[C]9[6[C]9[9[4[C]9[1[C]9[7[C]9[3[C]9[8[C]9[5[C]9[8[C]9[5[C]9[6[C]]]]]]]]]]]]]]]]]]]4[5[A]9[4[A]9[5[A]9[2[A]9[1[A]9[4[A]9[3[A]9[6[A]9[7[A]9[4[A]9[6[A]9[9[8[A]9[1[A]9[4[A]9[7[A]9[8[A]9[2[A]9[3[A]]]]]]]]]]]]]]]]]]]4[EC]9[4[EC]9[5[EC]9[2[EC]9[1[EC]9[4[EC]9[3[EC]9[6[EC]...

result:

ok correct (length = 72271)

Test #129:

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

input:

999999999999999997

output:

7[C]9[8[C]9[1[C]9[5[C]9[2[C]9[8[C]9[6[C]9[3[C]9[6[C]9[9[4[C]9[1[C]9[7[C]9[3[C]9[8[C]9[5[C]9[8[C]9[5[C]9[6[C]]]]]]]]]]]]]]]]]]]3[4[A]9[4[A]9[5[A]9[2[A]9[1[A]9[4[A]9[3[A]9[6[A]9[7[A]9[4[A]9[6[A]9[9[8[A]9[1[A]9[4[A]9[7[A]9[8[A]9[2[A]9[3[A]]]]]]]]]]]]]]]]]]]3[EC]9[4[EC]9[5[EC]9[2[EC]9[1[EC]9[4[EC]9[3[EC...

result:

ok correct (length = 79956)

Test #130:

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

input:

576460752303423487

output:

4[C]9[3[C]9[8[C]9[2[C]9[2[C]9[7[C]9[7[C]9[2[C]9[2[C]9[1[C]9[2[C]9[1[C]9[4[C]9[4[C]9[7[C]9[9[5[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]]6[7[A]9[1[A]9[4[A]9[1[A]9[1[A]9[8[A]9[3[A]9[1[A]9[1[A]9[5[A]9[5[A]9[9[2[A]9[2[A]9[8[A]9[4[A]9[2[A]9[8[A]9[1[A]]]]]]]]]]]]]]]]]]]6[EC]9[1[EC]9[4[EC]9[1[EC]9[1[EC]9[8[EC]9[3[EC...

result:

ok correct (length = 64956)

Test #131:

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

input:

576460752303423489

output:

6[C]9[3[C]9[8[C]9[2[C]9[2[C]9[7[C]9[7[C]9[2[C]9[2[C]9[1[C]9[2[C]9[1[C]9[4[C]9[4[C]9[7[C]9[9[5[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]]7[8[A]9[1[A]9[4[A]9[1[A]9[1[A]9[8[A]9[3[A]9[1[A]9[1[A]9[5[A]9[5[A]9[9[2[A]9[2[A]9[8[A]9[4[A]9[2[A]9[8[A]9[1[A]]]]]]]]]]]]]]]]]]]7[EC]9[1[EC]9[4[EC]9[1[EC]9[1[EC]9[8[EC]9[3[EC...

result:

ok correct (length = 62812)

Test #132:

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

input:

864691128455135228

output:

8[C]9[4[C]9[3[C]9[4[C]9[3[C]9[6[C]9[2[C]9[4[C]9[3[C]9[6[C]9[7[C]9[1[C]9[6[C]9[6[C]9[6[C]9[5[C]9[7[C]9[6[C]9[5[C]]]]]]]]]]]]]]]]]]]A7[EA]9[4[EA]9[3[EA]9[4[EA]9[3[EA]9[6[EA]9[2[EA]9[4[EA]9[3[EA]9[6[EA]9[7[EA]9[1[EA]9[6[EA]9[6[EA]9[6[EA]9[5[EA]9[7[EA]9[6[EA]9[5[EA]]]]]]]]]]]]]]]]]]]7[C]9[4[C]9[3[C]9[4[...

result:

ok correct (length = 82147)

Test #133:

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

input:

864691128455135230

output:

1[C]9[5[C]9[3[C]9[4[C]9[3[C]9[6[C]9[2[C]9[4[C]9[3[C]9[6[C]9[7[C]9[1[C]9[6[C]9[6[C]9[6[C]9[5[C]9[7[C]9[6[C]9[5[C]]]]]]]]]]]]]]]]]]]A9[5[EA]9[3[EA]9[4[EA]9[3[EA]9[6[EA]9[2[EA]9[4[EA]9[3[EA]9[6[EA]9[7[EA]9[1[EA]9[6[EA]9[6[EA]9[6[EA]9[5[EA]9[7[EA]9[6[EA]9[5[EA]]]]]]]]]]]]]]]]]]]9[5[C]9[3[C]9[4[C]9[3[C]9...

result:

ok correct (length = 82513)

Test #134:

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

input:

864691128455135232

output:

3[C]9[5[C]9[3[C]9[4[C]9[3[C]9[6[C]9[2[C]9[4[C]9[3[C]9[6[C]9[7[C]9[1[C]9[6[C]9[6[C]9[6[C]9[5[C]9[7[C]9[6[C]9[5[C]]]]]]]]]]]]]]]]]]]A2[EA]9[5[EA]9[3[EA]9[4[EA]9[3[EA]9[6[EA]9[2[EA]9[4[EA]9[3[EA]9[6[EA]9[7[EA]9[1[EA]9[6[EA]9[6[EA]9[6[EA]9[5[EA]9[7[EA]9[6[EA]9[5[EA]]]]]]]]]]]]]]]]]]]2[C]9[5[C]9[3[C]9[4[...

result:

ok correct (length = 68616)

Test #135:

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

input:

450283905890997362

output:

8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[8[C]9[2[C]]]]]]]]]]]]]]]]]]]A7[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[8[EA]9[2[EA]]]]]]]]]]]]]]]]]]]7[C]9[8[C]9[8[C]9[8[...

result:

ok correct (length = 77921)

Test #136:

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

input:

450283905890997364

output:

1[C]9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[C]]]]]]]]]]]]]]]]]]]A9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[EA]]]]]]]]]]]]]]]]]]]9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[9[3[C]]]]]]]]]]]]]]]]]]]4[5[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[4[A]9[1[A]]]]]]]...

result:

ok correct (length = 77084)

Test #137:

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

input:

766668286600904004

output:

6[C]9[4[C]9[5[C]9[8[C]9[9[5[C]9[3[C]9[7[C]9[8[C]9[1[C]9[1[C]9[1[C]9[3[C]9[8[C]9[5[C]9[6[C]9[8[C]9[9[5[C]]]]]]]]]]]]]]]]]]]A5[EA]9[4[EA]9[5[EA]9[8[EA]9[9[5[EA]9[3[EA]9[7[EA]9[8[EA]9[1[EA]9[1[EA]9[1[EA]9[3[EA]9[8[EA]9[5[EA]9[6[EA]9[8[EA]9[9[5[EA]]]]]]]]]]]]]]]]]]]5[C]9[4[C]9[5[C]9[8[C]9[9[5[C]9[3[C]9[...

result:

ok correct (length = 84708)

Test #138:

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

input:

766668286600904006

output:

8[C]9[4[C]9[5[C]9[8[C]9[9[5[C]9[3[C]9[7[C]9[8[C]9[1[C]9[1[C]9[1[C]9[3[C]9[8[C]9[5[C]9[6[C]9[8[C]9[9[5[C]]]]]]]]]]]]]]]]]]]A7[EA]9[4[EA]9[5[EA]9[8[EA]9[9[5[EA]9[3[EA]9[7[EA]9[8[EA]9[1[EA]9[1[EA]9[1[EA]9[3[EA]9[8[EA]9[5[EA]9[6[EA]9[8[EA]9[9[5[EA]]]]]]]]]]]]]]]]]]]7[C]9[4[C]9[5[C]9[8[C]9[9[5[C]9[3[C]9[...

result:

ok correct (length = 84722)

Test #139:

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

input:

766668286600904008

output:

1[C]9[5[C]9[5[C]9[8[C]9[9[5[C]9[3[C]9[7[C]9[8[C]9[1[C]9[1[C]9[1[C]9[3[C]9[8[C]9[5[C]9[6[C]9[8[C]9[9[5[C]]]]]]]]]]]]]]]]]]]A9[5[EA]9[5[EA]9[8[EA]9[9[5[EA]9[3[EA]9[7[EA]9[8[EA]9[1[EA]9[1[EA]9[1[EA]9[3[EA]9[8[EA]9[5[EA]9[6[EA]9[8[EA]9[9[5[EA]]]]]]]]]]]]]]]]]]]9[5[C]9[5[C]9[8[C]9[9[5[C]9[3[C]9[7[C]9[8[C...

result:

ok correct (length = 84217)

Test #140:

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

input:

127778047766817333

output:

6[C]9[3[C]9[8[C]9[5[C]9[7[C]9[9[2[C]9[4[C]9[7[C]9[1[C]9[6[C]9[4[C]9[3[C]9[4[C]9[5[C]9[8[C]9[5[C]9[7[C]]]]]]]]]]]]]]]]]]7[8[A]9[1[A]9[4[A]9[7[A]9[3[A]9[9[1[A]9[2[A]9[8[A]9[9[3[A]9[2[A]9[6[A]9[6[A]9[2[A]9[4[A]9[7[A]9[3[A]]]]]]]]]]]]]]]]]]7[EC]9[1[EC]9[4[EC]9[7[EC]9[3[EC]9[9[1[EC]9[2[EC]9[8[EC]9[9[3[EC...

result:

ok correct (length = 72763)

Test #141:

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

input:

127778047766817335

output:

8[C]9[3[C]9[8[C]9[5[C]9[7[C]9[9[2[C]9[4[C]9[7[C]9[1[C]9[6[C]9[4[C]9[3[C]9[4[C]9[5[C]9[8[C]9[5[C]9[7[C]]]]]]]]]]]]]]]]]]8[9[2[A]9[4[A]9[7[A]9[3[A]9[9[1[A]9[2[A]9[8[A]9[9[3[A]9[2[A]9[6[A]9[6[A]9[2[A]9[4[A]9[7[A]9[3[A]]]]]]]]]]]]]]]]]]8[EC]9[1[EC]9[4[EC]9[7[EC]9[3[EC]9[9[1[EC]9[2[EC]9[8[EC]9[9[3[EC]9[2...

result:

ok correct (length = 72735)

Test #142:

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

input:

63889023883408664

output:

5[C]9[1[C]9[4[C]9[7[C]9[3[C]9[9[1[C]9[2[C]9[8[C]9[9[3[C]9[2[C]9[6[C]9[6[C]9[2[C]9[4[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]A4[EA]9[1[EA]9[4[EA]9[7[EA]9[3[EA]9[9[1[EA]9[2[EA]9[8[EA]9[9[3[EA]9[2[EA]9[6[EA]9[6[EA]9[2[EA]9[4[EA]9[7[EA]9[3[EA]]]]]]]]]]]]]]]]]]4[C]9[1[C]9[4[C]9[7[C]9[3[C]9[9[1[C]9[2[C]9[8[C]9[9[3...

result:

ok correct (length = 68406)

Test #143:

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

input:

63889023883408666

output:

7[C]9[1[C]9[4[C]9[7[C]9[3[C]9[9[1[C]9[2[C]9[8[C]9[9[3[C]9[2[C]9[6[C]9[6[C]9[2[C]9[4[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]A6[EA]9[1[EA]9[4[EA]9[7[EA]9[3[EA]9[9[1[EA]9[2[EA]9[8[EA]9[9[3[EA]9[2[EA]9[6[EA]9[6[EA]9[2[EA]9[4[EA]9[7[EA]9[3[EA]]]]]]]]]]]]]]]]]]6[C]9[1[C]9[4[C]9[7[C]9[3[C]9[9[1[C]9[2[C]9[8[C]9[9[3...

result:

ok correct (length = 68778)

Test #144:

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

input:

63889023883408668

output:

9[2[C]9[4[C]9[7[C]9[3[C]9[9[1[C]9[2[C]9[8[C]9[9[3[C]9[2[C]9[6[C]9[6[C]9[2[C]9[4[C]9[7[C]9[3[C]]]]]]]]]]]]]]]]]]A8[EA]9[1[EA]9[4[EA]9[7[EA]9[3[EA]9[9[1[EA]9[2[EA]9[8[EA]9[9[3[EA]9[2[EA]9[6[EA]9[6[EA]9[2[EA]9[4[EA]9[7[EA]9[3[EA]]]]]]]]]]]]]]]]]]8[C]9[1[C]9[4[C]9[7[C]9[3[C]9[9[1[C]9[2[C]9[8[C]9[9[3[C]9...

result:

ok correct (length = 69154)

Test #145:

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

input:

985959861360127246

output:

1[C]9[3[C]9[9[5[C]9[4[C]9[3[C]9[4[C]9[9[7[C]9[5[C]9[3[C]9[1[C]9[2[C]9[6[C]9[6[C]9[9[1[C]9[5[C]9[6[C]]]]]]]]]]]]]]]]]]]A9[3[EA]9[9[5[EA]9[4[EA]9[3[EA]9[4[EA]9[9[7[EA]9[5[EA]9[3[EA]9[1[EA]9[2[EA]9[6[EA]9[6[EA]9[9[1[EA]9[5[EA]9[6[EA]]]]]]]]]]]]]]]]]]]9[3[C]9[9[5[C]9[4[C]9[3[C]9[4[C]9[9[7[C]9[5[C]9[3[C]...

result:

ok correct (length = 89771)

Test #146:

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

input:

985959861360127248

output:

3[C]9[3[C]9[9[5[C]9[4[C]9[3[C]9[4[C]9[9[7[C]9[5[C]9[3[C]9[1[C]9[2[C]9[6[C]9[6[C]9[9[1[C]9[5[C]9[6[C]]]]]]]]]]]]]]]]]]]A2[EA]9[3[EA]9[9[5[EA]9[4[EA]9[3[EA]9[4[EA]9[9[7[EA]9[5[EA]9[3[EA]9[1[EA]9[2[EA]9[6[EA]9[6[EA]9[9[1[EA]9[5[EA]9[6[EA]]]]]]]]]]]]]]]]]]]2[C]9[3[C]9[9[5[C]9[4[C]9[3[C]9[4[C]9[9[7[C]9[5...

result:

ok correct (length = 88813)

Test #147:

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

input:

667670830747760866

output:

4[C]9[3[C]9[9[3[C]9[8[C]9[8[C]9[4[C]9[3[C]9[4[C]9[1[C]9[9[2[C]9[5[C]9[4[C]9[7[C]9[2[C]9[9[4[C]9[4[C]]]]]]]]]]]]]]]]]]]A3[EA]9[3[EA]9[9[3[EA]9[8[EA]9[8[EA]9[4[EA]9[3[EA]9[4[EA]9[1[EA]9[9[2[EA]9[5[EA]9[4[EA]9[7[EA]9[2[EA]9[9[4[EA]9[4[EA]]]]]]]]]]]]]]]]]]]3[C]9[3[C]9[9[3[C]9[8[C]9[8[C]9[4[C]9[3[C]9[4[C...

result:

ok correct (length = 82947)

Test #148:

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

input:

896580751470751485

output:

9[8[C]9[5[C]9[2[C]9[5[C]9[5[C]9[8[C]9[7[C]9[3[C]9[2[C]9[8[C]9[8[C]9[3[C]9[6[C]9[5[C]9[7[C]9[6[C]9[8[C]9[5[C]]]]]]]]]]]]]]]]]]]4[5[A]9[8[A]9[2[A]9[1[A]9[7[A]9[2[A]9[4[A]9[8[A]9[1[A]9[1[A]9[4[A]9[4[A]9[6[A]9[7[A]9[2[A]9[8[A]9[7[A]9[8[A]9[2[A]]]]]]]]]]]]]]]]]]]4[EC]9[8[EC]9[2[EC]9[1[EC]9[7[EC]9[2[EC]9[...

result:

ok correct (length = 80665)

Test #149:

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

input:

837375032877975620

output:

8[C]9[4[C]9[8[C]9[3[C]9[6[C]9[3[C]9[9[6[C]9[9[9[4[C]9[8[C]9[1[C]9[6[C]9[9[8[C]9[1[C]9[5[C]9[5[C]]]]]]]]]]]]]]]]]]]A7[EA]9[4[EA]9[8[EA]9[3[EA]9[6[EA]9[3[EA]9[9[6[EA]9[9[9[4[EA]9[8[EA]9[1[EA]9[6[EA]9[9[8[EA]9[1[EA]9[5[EA]9[5[EA]]]]]]]]]]]]]]]]]]]7[C]9[4[C]9[8[C]9[3[C]9[6[C]9[3[C]9[9[6[C]9[9[9[4[C]9[8[...

result:

ok correct (length = 81776)

Test #150:

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

input:

925630830357844941

output:

9[8[C]9[6[C]9[9[3[C]9[3[C]9[8[C]9[6[C]9[6[C]9[4[C]9[9[7[C]9[9[5[C]9[6[C]9[4[C]9[4[C]9[1[C]9[6[C]]]]]]]]]]]]]]]]]]]4[5[A]9[8[A]9[7[A]9[4[A]9[1[A]9[6[A]9[8[A]9[7[A]9[7[A]9[6[A]9[4[A]9[3[A]9[9[7[A]9[7[A]9[6[A]9[6[A]9[9[3[A]]]]]]]]]]]]]]]]]]]4[EC]9[8[EC]9[7[EC]9[4[EC]9[1[EC]9[6[EC]9[8[EC]9[7[EC]9[7[EC]9...

result:

ok correct (length = 68904)

Test #151:

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

input:

968911014317797556

output:

8[C]9[8[C]9[5[C]9[3[C]9[1[C]9[7[C]9[1[C]9[1[C]9[5[C]9[9[7[C]9[1[C]9[9[4[C]9[8[C]9[7[C]9[9[4[C]9[6[C]]]]]]]]]]]]]]]]]]]A7[EA]9[8[EA]9[5[EA]9[3[EA]9[1[EA]9[7[EA]9[1[EA]9[1[EA]9[5[EA]9[9[7[EA]9[1[EA]9[9[4[EA]9[8[EA]9[7[EA]9[9[4[EA]9[6[EA]]]]]]]]]]]]]]]]]]]7[C]9[8[C]9[5[C]9[3[C]9[1[C]9[7[C]9[1[C]9[1[C]9...

result:

ok correct (length = 83278)

Extra Test:

score: 0
Extra Test Passed