c# Getting runtime error. Why? : <p>Hey im trying to solve this problem but Kattis says i get runtime error which means uncaught exception. 
<a href="https://open.kattis.com/problems/fizzbuzz" rel="nofollow noreferrer">https://open.kattis.com/problems/fizzbuzz</a></p>

<p>Is there anything that ive missed in my code that crashes the app?</p>

<pre><code>public static void Main(string[] args)
{
    string line = "";
    while ((line = Console.ReadLine()) != "0")
    {

        var numbers = line.Split(' ').Select(int.Parse).ToList();
        int x = numbers[0];
        int y = numbers[1];
        int N = numbers[2];
        for(int i = 1; i &lt;= N; i++)
        {
            bool found = false;
            bool found2 = false;
            if(i % x == 0)
            {
                if(i % y==0)
                {
                    Console.WriteLine("FizzBuzz");
                    found2 = true;
                }
                else
                {
                    Console.WriteLine("Fizz");
                    found = true;                           
                }
            }
            if(i % y == 0 &amp;&amp; !found2)
            {
                Console.WriteLine("Buzz");
                found = true;
            }
            if(!found &amp;&amp; !found2)
            {
                Console.WriteLine(i);
            }
        }
       }
}
</code></pre>
