#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("road.in","r",stdin);
	freopen("road.out","w",stdout);
	int a[100001];
	for(int i=0;i<24;i++){
		cin>>a[i];
	}
	for(int i=0;i<24;i++){
		if(a[i]==4 4 2 1 4 6 2 3 7 4 2 5 4 3 4 1 1 8 2 4 100 1 3 2 4){
			cout<<"13";
		}
	}
}
