using System;
using System.Linq;
public class Program
{
public static void Main()
foreach (int sn in Enumerable.Range(1, 5).Scan(0, (acc, n) => acc + n)) {
Console.WriteLine(sn);
}