#include <iostream>;
using namespace std;
int main(){
int s, p, y, j;
int d = 12;
while(cin >> s >> p >> y >> j){
int total_age = d + j;
}
return 0;
}
#include <iostream>;
using namespace std;
int main(){
int s, p, y, j;
int d = 12;
while(cin >> s >> p >> y >> j){
int total_age = d + j;
}
return 0;
}