using System; using Nemerle.IO; class App { public static Main(args : array[string]) : int { mutable n = Convert.ToInt32(args[0]); when (n < 1) n = 1; def x = array (n); def y = array (n); for (mutable i = 0; i < n; i = i + 1) x[i] = i + 1; for (mutable k = 0; k < 1000; k = k + 1) for (mutable j = n - 1; j >= 0; j = j - 1) y[j] = y[j] + x[j]; printf ("%d %d\n", y[0], y[n-1]); 0; } }