Rectangle Made with Bars (AOJ 0346) by ynu_a
Contest: 3420    RunID: 2277092    Status: Accepted    Date: Sun Apr 23 15:51:57 JST 2017


#include <iostream>
#include <algorithm>
using namespace std;

int main() {
	int array[12]={0};
	for(int i=0;i<12;i++){
		cin>>array[i];
	}
	sort(array,array+12);
	int flag=false;
	for(int i=0;i<3;i++){
		for(int j=1;j<4;j++){
			if(array[i*4]==array[j+i*4]){
				continue;
			}else{
				cout<<"no"<<endl;
				return 0;
			}
		}
	}
	cout<<"yes"<<endl;
	// your code goes here
	return 0;
}