#include<bits/stdc++.h>usingnamespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */intmain(int argc, char** argv){
int a=0,b=0,c=0;
char d,e,f,g,h,i,j,k,l,m,n,o;
cin>>d>>e>>f>>a>>g>>h>>i>>j>>b>>k>>l>>m>>n>>c>>o;
cout<<a<<" "<<b<<" "<<c;
return0;
}