using System;
public class Program
{
public static void Main()
Console.WriteLine("Enter number");
int n = int.Parse(Console.ReadLine());
int sum = 0;
int help = n;
if (n > 20 && n < 1000000)
int max = n % 10;
while (n > 0)
int digit = n % 10;
sum = sum + digit;
if (max < digit)
max = digit;
}
n = n / 10;
Console.WriteLine("The sum of all digits is {0}, and the largest one is {1}", sum, max);