<>;
++$h{$_}for glob<>;
if((@_=keys%h)==3){
	if((int($_[0])^int($_[1]))==int($_[2])&&$h{$_[0]}==$h{$_[1]}&&$h{$_[1]}==$h{$_[2]}){
		print'Yes',$/
	}else{
		print'No',$/
	}
}elsif(@_==1){
	print'Yes',$/
}else{
	print'No',$/
}
