using System;
public class Program
{
public static void Main()
int num,total,digit,count=0,num1,max=0,nummax=0,count10=0,count2=0;
Console.WriteLine("enter num");
num= int.Parse(Console.ReadLine());
while (num!=-1)
bool yes=true;
num1=num;
total=0;
while (num!=0)
digit=num%10;
total+=digit;
if (digit<2 || digit>6)
yes=false;
num=num/10;
}
Console.WriteLine(total);
if (num1%total==0 && Math.Sqrt(total)%1==0)
count++;
if (total>max)
nummax=num;
max=total;
if (total>10)
count10++;
if (yes==true)
count2++;
Console.WriteLine("the number with the biggest total is "+ nummax);
Console.WriteLine("there are "+ count10+ " numbers that there digits is higher then 10");
Console.WriteLine("the are "+ count2 + " numbers that all of the digits are between 2 and 6");
Console.WriteLine("there are "+ count+ " specials numbers");