#include<iostream> using namespace std; int main(){ int a[14]={}; for(int i=0;i<14;i++){ cin>>a[i]; } int b[7]; for(int i=0,j=0;i<14;i+=1,j++){ b[j]=a[i]+a[i+1]; } for(int i=0;i<7;i++){ if(b[i]>8){ cout<<i; } else{ cout<<0; } } return 0; }