задача 9. Count the Integers
Здравейте пускам задачата в judge и на 1 от тестовете ми изписва Rutime error.т
Това е кода ми.
using System;
using System.Threading;
namespace Softuni
{
    class Program
    {
        static void Main() {
            int sum = 0;
            int a = int.Parse(Console.ReadLine());
           
            while (a!=0)
            {
                sum += a;
                int.TryParse(Console.ReadLine(),out a);
            }
            Console.WriteLine(sum);
        }
    }
}