using System;
using System.Collections.Generic;
public class Test
{
static IEnumerable<int> infinite(int step = 1, int start = 0)
{
while (true)
yield return start += step;
}
public static void Main()
{
foreach (var i in infinite(2, 13))
{
if (i > 42)
break;
Console.WriteLine(i);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXN0YXRpYyBJRW51bWVyYWJsZTxpbnQ+IGluZmluaXRlKGludCBzdGVwID0gMSwgaW50IHN0YXJ0ID0gMCkKCXsKCQl3aGlsZSAodHJ1ZSkKCQkJeWllbGQgcmV0dXJuIHN0YXJ0ICs9IHN0ZXA7Cgl9CgkKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCQlmb3JlYWNoICh2YXIgaSBpbiBpbmZpbml0ZSgyLCAxMykpCgkJewoJCQlpZiAoaSA+IDQyKQoJCQkJYnJlYWs7CgkJCUNvbnNvbGUuV3JpdGVMaW5lKGkpOwoJCX0KCX0KfQ==