//#pragma comment(linker,"/STACK:102400000,102400000") #include #include #include #include #include #include #include #include #include #include #define ll long long #define db double #define PB push_back #define lson k<<1 #define rson k<<1|1 using namespace std; const int N = 15; char str[N]; int main() { #ifdef PKWV // freopen("in.in","r",stdin); #endif // PKWV while(scanf("%s",str)+1) { int len=strlen(str); bool ok=true; if(len%3!=0) ok=false; else { for(int i=0;i