https://www.acmicpc.net/problem/2490
#include <iostream>
using namespace std;
int main() {
for(int i=0;i<3;i++){
int sum=0;
for(int j=0;j<4;j++){
int a;
cin>>a;
sum+=a;
}
if(sum==3) cout<<"A"<<"\n";
else if(sum==2) cout<<"B"<<"\n";
else if(sum==1) cout<<"C"<<"\n";
else if(sum==0) cout<<"D"<<"\n";
else if(sum==4) cout<<"E"<<"\n";
}
}