#include <bits/stdc++.h>
#include<limits.h>
#include<stdio.h>
#include<cstring>
#include<string>
using namespace std;
typedef long long ll;
typedef long double ld;
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define pb push_back
#define mp make_pair
#define sz(a) a.size()
#define fi first
#define se second
#define rsz(a,n) a.resize(n)
#define test(t) ll t;cin>>t;while(t--)
#define forn(i,e) for(int i = 0; i < e; i++)
#define forsn(i,s,e) for(int i = s; i < e; i++)
#define rforn(i,s) for(int i = s; i >= 0; i--)
#define rforsn(i,s,e) for(int i = s; i >= e; i--)
#define fillv(a,k) memset(a,k,sizeof(a))
#define filla(a,k,n) memset(a,k,sizeof(a[0])*n)
#define leadzero(a) __builtin_clz(a) //count leading zeros
#define trailzero(a) __builtin_ctz(a) //count trailing zeros
#define bitcount(a) __builtin_popcount(a) // count set bits (add ll)
#define ln cout<<"\n"
#define sp cout<<" "
#define spaceprint(a,i,s,n) {forsn(i,s,n) { cout<<a[i]; sp;}}
#define lineprint(a,i,s,n) {forsn(i,s,n) {cout<<a[i]; ln;}}
#define maxe(a) *max_element(a.begin(),a.end())
#define maxi(a) max_element(a.begin(),a.end())-a.begin()
#define mine(a) *min_element(a.begin(),a.end())
#define mini(a) min_element(a.begin(),a.end())-a.begin()
#define all(c) c.begin(),c.end()
#define trav(container, it) for(typeof(container.begin()) it = container.begin(); it != container.end(); it++)
#define present(container, element) (container.find(element) != container.end())
#define cpresent(container, element) (find(all(container),element) != container.end())// check the presence of element
//copy(from_begin, from_end, to_begin); copy function
typedef unsigned long long int ull;
typedef long double ld;
typedef pair<ll,ll> p64;
typedef pair<int,int> p32;
typedef pair<int,p32> p96;
typedef vector<ll> v64;
typedef vector<string> vs;
typedef vector<int> v32;
typedef vector<v32> vv32;
typedef vector<v64> vv64;
typedef vector<p32> vp32;
typedef vector<p64> vp64;
typedef vector<vp32> vvp32;
typedef map<int,int> m32;
const int LIM = 1e5+5, MOD = 1e9+7;
#define sumv(v) accumulate(all(v),ll(0))
#define productv(v) accumulate(all(v), ll(1), multiplies< ll >())
ll gcd(ll a, ll b) { if(b == 0) return a; return gcd(b, a % b); }
ll fastpowMOD(ll a, ll p,ll MOD){ if(p==0) return 1; ll z = fastpowMOD(a,p/2,MOD); z = (z*z)%MOD; if(p%2) z = (z*a)%MOD; return z; }
ll fastpow(ll a, ll p){ if(p==0) return 1; ll z = fastpow(a,p/2); z = (z*z); if(p%2) z = (z*a); return z; }
int main()
{
ll t;
cin>>t;
ll k;
for(k=1;k<=t;k++)
{
ll f,i;
cin>>f;
//ll c[6];
string g="";
v64 k[10];
ll s=0;
char a;
for(i=0;i<119;i++)
{
cout<<5*i+1;
cout<<endl;
s++;
cin>>a;
k[a-'A'].pb(i);
}
ll t;
for(i=0;i<5;i++)
{
if(k[i].size()==23)
{
t=i;
break;
}
}
g=g+char(t+'A');
v64 v;
for(i=0;i<k[t].size();i++)
{
v.pb(k[t][i]);
}
for(i=0;i<5;i++)
{
k[i].resize(0);
}
for(i=0;i<23;i++)
{
cout<<5*v[i]+2;
s++;
cout<<endl;
//char a;
cin>>a;
k[a-'A'].pb(v[i]);
}
for(i=0;i<5;i++)
{
if(k[i].size()==5)
{
t=i;
break;
}
}
g+char(t+'A');
v.resize(0);
for(i=0;i<k[t].size();i++)
{
v.pb(k[t][i]);
}
for(i=0;i<5;i++)
{
k[i].resize(0);
}
for(i=0;i<5;i++)
{
cout<<5*v[i]+3;
s++;
cout<<endl;
cin>>a;
k[a-'A'].pb(v[i]);
}
for(i=0;i<5;i++)
{
if(k[i].size()==2)
{
t=i;
break;
}
}
g+char(t+'A');
v.resize(0);
for(i=0;i<k[t].size();i++)
{
v.pb(k[t][i]);
}
for(i=0;i<5;i++)
{
k[i].resize(0);
}
for(i=0;i<1;i++)
{
cout<<5*v[i]+4;
s++;
cout<<endl;
//char a;
cin>>a;
k[a-'A'].pb(v[i]);
}
for(i=0;i<5;i++)
{
if(k[i].size()==1)
{
t=i;
break;
}
}
g+char(t+'A');
v.resize(0);
for(i=0;i<k[t].size();i++)
{
v.pb(k[t][i]);
}
for(i=0;i<5;i++)
{
k[i].resize(0);
}
ll y[6];
for(i=0;i<g.size();i++)
{
y[g[i]-'A']++;
}
for(i=0;i<5;i++)
{
if(y[i]==0)
{
g+char(i+'A');
}
}
//char a;
for(i=0;i<f-s;i++)
{
cout<<5+4;
cout<<endl;
//char a;
cin>>a;
}
cout<<g;
cout<<endl;
cin>>a;
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNpbmNsdWRlPGxpbWl0cy5oPgojaW5jbHVkZTxzdGRpby5oPgojaW5jbHVkZTxjc3RyaW5nPgojaW5jbHVkZTxzdHJpbmc+CnVzaW5nIG5hbWVzcGFjZSAgc3RkOwp0eXBlZGVmIGxvbmcgbG9uZyBsbDsKdHlwZWRlZiBsb25nIGRvdWJsZSBsZDsKI2RlZmluZSBmYXN0IGlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oZmFsc2UpO2Npbi50aWUoMCk7Y291dC50aWUoMCkKI2RlZmluZSBwYiBwdXNoX2JhY2sKI2RlZmluZSBtcCBtYWtlX3BhaXIKI2RlZmluZSBzeihhKSBhLnNpemUoKQojZGVmaW5lIGZpIGZpcnN0CiNkZWZpbmUgc2Ugc2Vjb25kCiNkZWZpbmUgcnN6KGEsbikgYS5yZXNpemUobikKI2RlZmluZSB0ZXN0KHQpIGxsIHQ7Y2luPj50O3doaWxlKHQtLSkKI2RlZmluZSBmb3JuKGksZSkgZm9yKGludCBpID0gMDsgaSA8IGU7IGkrKykKI2RlZmluZSBmb3JzbihpLHMsZSkgZm9yKGludCBpID0gczsgaSA8IGU7IGkrKykKI2RlZmluZSByZm9ybihpLHMpIGZvcihpbnQgaSA9IHM7IGkgPj0gMDsgaS0tKQojZGVmaW5lIHJmb3JzbihpLHMsZSkgZm9yKGludCBpID0gczsgaSA+PSBlOyBpLS0pCiNkZWZpbmUgZmlsbHYoYSxrKSBtZW1zZXQoYSxrLHNpemVvZihhKSkKI2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IE1PRCl7IGlmKHA9PTApIHJldHVybiAxOyBsbCB6ID0gZmFzdHBvd01PRChhLHAvMixNT0QpOyB6ID0gKHoqeiklTU9EOyBpZihwJTIpIHogPSAoeiphKSVNT0Q7IHJldHVybiB6OyB9CmxsIGZhc3Rwb3cobGwgYSwgbGwgcCl7IGlmKHA9PTApIHJldHVybiAxOyBsbCB6ID0gZmFzdHBvdyhhLHAvMik7IHogPSAoeip6KTsgaWYocCUyKSB6ID0gKHoqYSk7IHJldHVybiB6OyB9CmludCBtYWluKCkKewogICAgbGwgdDsKICAgIGNpbj4+dDsKICAgIGxsIGs7CiAgICBmb3Ioaz0xO2s8PXQ7aysrKQogICAgewogICAgICAgIGxsIGYsaTsKICAgICAgICBjaW4+PmY7CiAgICAgICAgLy9sbCBjWzZdOwogICAgICAgIHN0cmluZyBnPSIiOwogICAgICAgIHY2NCBrWzEwXTsKICAgICAgICBsbCBzPTA7CiAgICAgICAgY2hhciBhOwogICAgICAgIGZvcihpPTA7aTwxMTk7aSsrKQogICAgICAgIHsKICAgICAgICAgICAgY291dDw8NSppKzE7CiAgICAgICAgICAgIGNvdXQ8PGVuZGw7CiAgICAgICAgICAgIHMrKzsKICAgICAgICAgICAgY2luPj5hOwogICAgICAgICAgICBrW2EtJ0EnXS5wYihpKTsKICAgICAgICB9CiAgICAgICAgbGwgdDsKICAgICAgICBmb3IoaT0wO2k8NTtpKyspCiAgICAgICAgewogICAgICAgICAgICBpZihrW2ldLnNpemUoKT09MjMpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIHQ9aTsKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGc9ZytjaGFyKHQrJ0EnKTsKICAgICAgICB2NjQgdjsKICAgICAgICBmb3IoaT0wO2k8a1t0XS5zaXplKCk7aSsrKQogICAgICAgIHsKICAgICAgICAgICAgdi5wYihrW3RdW2ldKTsKICAgICAgICB9CiAgICAgICAgZm9yKGk9MDtpPDU7aSsrKQogICAgICAgIHsKICAgICAgICAgICAga1tpXS5yZXNpemUoMCk7CiAgICAgICAgfQogICAgICAgIGZvcihpPTA7aTwyMztpKyspCiAgICAgICAgewogICAgICAgICAgICBjb3V0PDw1KnZbaV0rMjsKICAgICAgICAgICAgcysrOwogICAgICAgICAgICBjb3V0PDxlbmRsOwogICAgICAgICAgICAvL2NoYXIgYTsKICAgICAgICAgICAgY2luPj5hOwogICAgICAgICAgICBrW2EtJ0EnXS5wYih2W2ldKTsKICAgICAgICB9CiAgICAgICAgZm9yKGk9MDtpPDU7aSsrKQogICAgICAgIHsKICAgICAgICAgICAgaWYoa1tpXS5zaXplKCk9PTUpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIHQ9aTsKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGcrY2hhcih0KydBJyk7CiAgICAgICAgdi5yZXNpemUoMCk7CiAgICAgICAgZm9yKGk9MDtpPGtbdF0uc2l6ZSgpO2krKykKICAgICAgICB7CiAgICAgICAgICAgIHYucGIoa1t0XVtpXSk7CiAgICAgICAgfQogICAgICAgIGZvcihpPTA7aTw1O2krKykKICAgICAgICB7CiAgICAgICAgICAgIGtbaV0ucmVzaXplKDApOwogICAgICAgIH0KICAgICAgICBmb3IoaT0wO2k8NTtpKyspCiAgICAgICAgewogICAgICAgICAgICBjb3V0PDw1KnZbaV0rMzsKICAgICAgICAgICAgcysrOwogICAgICAgICAgICBjb3V0PDxlbmRsOwogICAgICAgICAgICBjaW4+PmE7CiAgICAgICAgICAgIGtbYS0nQSddLnBiKHZbaV0pOwogICAgICAgIH0KICAgICAgICBmb3IoaT0wO2k8NTtpKyspCiAgICAgICAgewogICAgICAgICAgICBpZihrW2ldLnNpemUoKT09MikKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgdD1pOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgZytjaGFyKHQrJ0EnKTsKICAgICAgICB2LnJlc2l6ZSgwKTsKICAgICAgICBmb3IoaT0wO2k8a1t0XS5zaXplKCk7aSsrKQogICAgICAgIHsKICAgICAgICAgICAgdi5wYihrW3RdW2ldKTsKICAgICAgICB9CiAgICAgICAgZm9yKGk9MDtpPDU7aSsrKQogICAgICAgIHsKICAgICAgICAgICAga1tpXS5yZXNpemUoMCk7CiAgICAgICAgfQogICAgICAgIGZvcihpPTA7aTwxO2krKykKICAgICAgICB7CiAgICAgICAgICAgIGNvdXQ8PDUqdltpXSs0OwogICAgICAgICAgICBzKys7CiAgICAgICAgICAgIGNvdXQ8PGVuZGw7CiAgICAgICAgICAgIC8vY2hhciBhOwogICAgICAgICAgICBjaW4+PmE7CiAgICAgICAgICAgIGtbYS0nQSddLnBiKHZbaV0pOwogICAgICAgIH0KICAgICAgICBmb3IoaT0wO2k8NTtpKyspCiAgICAgICAgewogICAgICAgICAgICBpZihrW2ldLnNpemUoKT09MSkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgdD1pOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgZytjaGFyKHQrJ0EnKTsKICAgICAgICB2LnJlc2l6ZSgwKTsKICAgICAgICBmb3IoaT0wO2k8a1t0XS5zaXplKCk7aSsrKQogICAgICAgIHsKICAgICAgICAgICAgdi5wYihrW3RdW2ldKTsKICAgICAgICB9CiAgICAgICAgZm9yKGk9MDtpPDU7aSsrKQogICAgICAgIHsKICAgICAgICAgICAga1tpXS5yZXNpemUoMCk7CiAgICAgICAgfQogICAgICAgIGxsIHlbNl07CiAgICAgICAgZm9yKGk9MDtpPGcuc2l6ZSgpO2krKykKICAgICAgICB7CiAgICAgICAgICAgIHlbZ1tpXS0nQSddKys7CiAgICAgICAgfQogICAgICAgIGZvcihpPTA7aTw1O2krKykKICAgICAgICB7CiAgICAgICAgICAgIGlmKHlbaV09PTApCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIGcrY2hhcihpKydBJyk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgLy9jaGFyIGE7CiAgICAgICAgICAgIGZvcihpPTA7aTxmLXM7aSsrKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBjb3V0PDw1KzQ7CiAgICAgICAgICAgICAgICBjb3V0PDxlbmRsOwogICAgICAgICAgICAgICAgLy9jaGFyIGE7CiAgICAgICAgICAgICAgICBjaW4+PmE7CiAgICAgICAgICAgIH0KICAgICAgICBjb3V0PDxnOwogICAgICAgIGNvdXQ8PGVuZGw7CiAgICAgICAgY2luPj5hOwogICAgfQp9Cg==
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, or enum expected
#include <bits/stdc++.h>
^
Main.java:2: error: illegal character: '#'
#include<limits.h>
^
Main.java:3: error: illegal character: '#'
#include<stdio.h>
^
Main.java:4: error: illegal character: '#'
#include<cstring>
^
Main.java:5: error: illegal character: '#'
#include<string>
^
Main.java:7: error: class, interface, or enum expected
typedef long long ll;
^
Main.java:8: error: class, interface, or enum expected
typedef long double ld;
^
Main.java:9: error: illegal character: '#'
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
^
Main.java:9: error: class, interface, or enum expected
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
^
Main.java:9: error: class, interface, or enum expected
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
^
Main.java:9: error: class, interface, or enum expected
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
^
Main.java:10: error: illegal character: '#'
#define pb push_back
^
Main.java:11: error: illegal character: '#'
#define mp make_pair
^
Main.java:12: error: illegal character: '#'
#define sz(a) a.size()
^
Main.java:13: error: illegal character: '#'
#define fi first
^
Main.java:14: error: illegal character: '#'
#define se second
^
Main.java:15: error: illegal character: '#'
#define rsz(a,n) a.resize(n)
^
Main.java:16: error: illegal character: '#'
#define test(t) ll t;cin>>t;while(t--)
^
Main.java:16: error: class, interface, or enum expected
#define test(t) ll t;cin>>t;while(t--)
^
Main.java:16: error: class, interface, or enum expected
#define test(t) ll t;cin>>t;while(t--)
^
Main.java:17: error: illegal character: '#'
#define forn(i,e) for(int i = 0; i < e; i++)
^
Main.java:17: error: class, interface, or enum expected
#define forn(i,e) for(int i = 0; i < e; i++)
^
Main.java:17: error: class, interface, or enum expected
#define forn(i,e) for(int i = 0; i < e; i++)
^
Main.java:18: error: illegal character: '#'
#define forsn(i,s,e) for(int i = s; i < e; i++)
^
Main.java:18: error: class, interface, or enum expected
#define forsn(i,s,e) for(int i = s; i < e; i++)
^
Main.java:18: error: class, interface, or enum expected
#define forsn(i,s,e) for(int i = s; i < e; i++)
^
Main.java:19: error: illegal character: '#'
#define rforn(i,s) for(int i = s; i >= 0; i--)
^
Main.java:19: error: class, interface, or enum expected
#define rforn(i,s) for(int i = s; i >= 0; i--)
^
Main.java:19: error: class, interface, or enum expected
#define rforn(i,s) for(int i = s; i >= 0; i--)
^
Main.java:20: error: illegal character: '#'
#define rforsn(i,s,e) for(int i = s; i >= e; i--)
^
Main.java:20: error: class, interface, or enum expected
#define rforsn(i,s,e) for(int i = s; i >= e; i--)
^
Main.java:20: error: class, interface, or enum expected
#define rforsn(i,s,e) for(int i = s; i >= e; i--)
^
Main.java:21: error: illegal character: '#'
#define fillv(a,k) memset(a,k,sizeof(a))
^
Main.java:22: error: illegal character: '#'
#define filla(a,k,n) memset(a,k,sizeof(a[0])*n)
^
Main.java:23: error: illegal character: '#'
#define leadzero(a) __builtin_clz(a) //count leading zeros
^
Main.java:24: error: illegal character: '#'
#define trailzero(a) __builtin_ctz(a) //count trailing zeros
^
Main.java:25: error: illegal character: '#'
#define bitcount(a) __builtin_popcount(a) // count set bits (add ll)
^
Main.java:26: error: illegal character: '#'
#define ln cout<<"\n"
^
Main.java:27: error: illegal character: '#'
#define sp cout<<" "
^
Main.java:28: error: illegal character: '#'
#define spaceprint(a,i,s,n) {forsn(i,s,n) { cout<<a[i]; sp;}}
^
Main.java:28: error: class, interface, or enum expected
#define spaceprint(a,i,s,n) {forsn(i,s,n) { cout<<a[i]; sp;}}
^
Main.java:28: error: class, interface, or enum expected
#define spaceprint(a,i,s,n) {forsn(i,s,n) { cout<<a[i]; sp;}}
^
Main.java:29: error: illegal character: '#'
#define lineprint(a,i,s,n) {forsn(i,s,n) {cout<<a[i]; ln;}}
^
Main.java:29: error: class, interface, or enum expected
#define lineprint(a,i,s,n) {forsn(i,s,n) {cout<<a[i]; ln;}}
^
Main.java:29: error: class, interface, or enum expected
#define lineprint(a,i,s,n) {forsn(i,s,n) {cout<<a[i]; ln;}}
^
Main.java:30: error: illegal character: '#'
#define maxe(a) *max_element(a.begin(),a.end())
^
Main.java:31: error: illegal character: '#'
#define maxi(a) max_element(a.begin(),a.end())-a.begin()
^
Main.java:32: error: illegal character: '#'
#define mine(a) *min_element(a.begin(),a.end())
^
Main.java:33: error: illegal character: '#'
#define mini(a) min_element(a.begin(),a.end())-a.begin()
^
Main.java:34: error: illegal character: '#'
#define all(c) c.begin(),c.end()
^
Main.java:35: error: illegal character: '#'
#define trav(container, it) for(typeof(container.begin()) it = container.begin(); it != container.end(); it++)
^
Main.java:35: error: class, interface, or enum expected
#define trav(container, it) for(typeof(container.begin()) it = container.begin(); it != container.end(); it++)
^
Main.java:35: error: class, interface, or enum expected
#define trav(container, it) for(typeof(container.begin()) it = container.begin(); it != container.end(); it++)
^
Main.java:36: error: illegal character: '#'
#define present(container, element) (container.find(element) != container.end())
^
Main.java:37: error: illegal character: '#'
#define cpresent(container, element) (find(all(container),element) != container.end())// check the presence of element
^
Main.java:40: error: class, interface, or enum expected
typedef long double ld;
^
Main.java:41: error: class, interface, or enum expected
typedef pair<ll,ll> p64;
^
Main.java:42: error: class, interface, or enum expected
typedef pair<int,int> p32;
^
Main.java:43: error: class, interface, or enum expected
typedef pair<int,p32> p96;
^
Main.java:44: error: class, interface, or enum expected
typedef vector<ll> v64;
^
Main.java:45: error: class, interface, or enum expected
typedef vector<string> vs;
^
Main.java:46: error: class, interface, or enum expected
typedef vector<int> v32;
^
Main.java:47: error: class, interface, or enum expected
typedef vector<v32> vv32;
^
Main.java:48: error: class, interface, or enum expected
typedef vector<v64> vv64;
^
Main.java:49: error: class, interface, or enum expected
typedef vector<p32> vp32;
^
Main.java:50: error: class, interface, or enum expected
typedef vector<p64> vp64;
^
Main.java:51: error: class, interface, or enum expected
typedef vector<vp32> vvp32;
^
Main.java:52: error: class, interface, or enum expected
typedef map<int,int> m32;
^
Main.java:53: error: class, interface, or enum expected
const int LIM = 1e5+5, MOD = 1e9+7;
^
Main.java:54: error: illegal character: '#'
#define sumv(v) accumulate(all(v),ll(0))
^
Main.java:54: error: class, interface, or enum expected
#define sumv(v) accumulate(all(v),ll(0))
^
Main.java:55: error: illegal character: '#'
#define productv(v) accumulate(all(v), ll(1), multiplies< ll >())
^
Main.java:56: error: class, interface, or enum expected
ll gcd(ll a, ll b) { if(b == 0) return a; return gcd(b, a % b); }
^
Main.java:56: error: class, interface, or enum expected
ll gcd(ll a, ll b) { if(b == 0) return a; return gcd(b, a % b); }
^
Main.java:57: error: class, interface, or enum expected
ll fastpowMOD(ll a, ll p,ll MOD){ if(p==0) return 1; ll z = fastpowMOD(a,p/2,MOD); z = (z*z)%MOD; if(p%2) z = (z*a)%MOD; return z; }
^
Main.java:57: error: class, interface, or enum expected
ll fastpowMOD(ll a, ll p,ll MOD){ if(p==0) return 1; ll z = fastpowMOD(a,p/2,MOD); z = (z*z)%MOD; if(p%2) z = (z*a)%MOD; return z; }
^
Main.java:57: error: class, interface, or enum expected
ll fastpowMOD(ll a, ll p,ll MOD){ if(p==0) return 1; ll z = fastpowMOD(a,p/2,MOD); z = (z*z)%MOD; if(p%2) z = (z*a)%MOD; return z; }
^
Main.java:57: error: class, interface, or enum expected
ll fastpowMOD(ll a, ll p,ll MOD){ if(p==0) return 1; ll z = fastpowMOD(a,p/2,MOD); z = (z*z)%MOD; if(p%2) z = (z*a)%MOD; return z; }
^
Main.java:57: error: class, interface, or enum expected
ll fastpowMOD(ll a, ll p,ll MOD){ if(p==0) return 1; ll z = fastpowMOD(a,p/2,MOD); z = (z*z)%MOD; if(p%2) z = (z*a)%MOD; return z; }
^
Main.java:58: error: class, interface, or enum expected
ll fastpow(ll a, ll p){ if(p==0) return 1; ll z = fastpow(a,p/2); z = (z*z); if(p%2) z = (z*a); return z; }
^
Main.java:58: error: class, interface, or enum expected
ll fastpow(ll a, ll p){ if(p==0) return 1; ll z = fastpow(a,p/2); z = (z*z); if(p%2) z = (z*a); return z; }
^
Main.java:58: error: class, interface, or enum expected
ll fastpow(ll a, ll p){ if(p==0) return 1; ll z = fastpow(a,p/2); z = (z*z); if(p%2) z = (z*a); return z; }
^
Main.java:58: error: class, interface, or enum expected
ll fastpow(ll a, ll p){ if(p==0) return 1; ll z = fastpow(a,p/2); z = (z*z); if(p%2) z = (z*a); return z; }
^
Main.java:58: error: class, interface, or enum expected
ll fastpow(ll a, ll p){ if(p==0) return 1; ll z = fastpow(a,p/2); z = (z*z); if(p%2) z = (z*a); return z; }
^
Main.java:62: error: class, interface, or enum expected
cin>>t;
^
Main.java:63: error: class, interface, or enum expected
ll k;
^
Main.java:64: error: class, interface, or enum expected
for(k=1;k<=t;k++)
^
Main.java:64: error: class, interface, or enum expected
for(k=1;k<=t;k++)
^
Main.java:64: error: class, interface, or enum expected
for(k=1;k<=t;k++)
^
Main.java:67: error: class, interface, or enum expected
cin>>f;
^
Main.java:69: error: class, interface, or enum expected
string g="";
^
Main.java:70: error: class, interface, or enum expected
v64 k[10];
^
Main.java:71: error: class, interface, or enum expected
ll s=0;
^
Main.java:72: error: class, interface, or enum expected
char a;
^
Main.java:73: error: class, interface, or enum expected
for(i=0;i<119;i++)
^
Main.java:73: error: class, interface, or enum expected
for(i=0;i<119;i++)
^
Main.java:73: error: class, interface, or enum expected
for(i=0;i<119;i++)
^
Main.java:76: error: class, interface, or enum expected
cout<<endl;
^
Main.java:77: error: class, interface, or enum expected
s++;
^
100 errors