int ten = (num%100-unit)/10;
int hundred = (((num-unit)/10)-ten)/10;
if((unit+ten +hundred)%3 == 0){
if((unit+ten +hundred)%3 == 1){
if((unit+ten +hundred)%3 == 2){
if(count0 < count1 && count0 <count2){
else if(count1 < count0 && count1 <count2){
else if(count2 < count1 && count2 <count0){
Console.WriteLine("everything is equal");