```cpp
#include<bits/stdc++.h>
using namespace std;
int r1=1,r2=1;string a;
int x,y,z,la;
int main()
{
cin>>a;la=a.size()-1;x=y=z=0;
for(int i=0;i<=la;i++)
{
if(i%5==0)
{
if(a[i]=='a')
{
if(a[i+3]=='b')
{
x=y;
}
else if(a[3+i]=='c')
{
x=z;
}
else if(a[3+i]=='a')
{
}
else
{
x=int(a[i+3]-48);
}
}
if(a[i]=='b')
{
if(a[i+3]=='a')
{
y=x;
}
else if(a[3+i]=='c')
{
y=z;
}
else if(a[3+i]=='b')
{
}
else
{
y=int(a[i+3]-48);
}
}
if(a[i]=='c')
{
if(a[i+3]=='b')
{
z=y;
}
else if(a[3+i]=='c')
{
}
else if(a[3+i]=='a')
{
z=x;
}
else
{
z=int(a[i+3]-48);
}
}
}
}
printf("%d %d %d",x,y,z);
return 0;
}
by xingcode @ 2022-11-27 15:09:38
```cpp
QWQ
by xingcode @ 2022-11-27 15:10:22