#include <iostream>
#include <string>

using namespace std;

int main()
{
    int a,b,c,d,e,f,g,h,j,k,l,x=0,y=2,z=1;
    cin>>a>>b;
    cin>>c>>d>>e;
    cin>>f>>g>>h;
    cin>>j>>k>>l;
    cout<<x<<" "<<y<<" "<<z;
}