using System;
using c = System.Console;
public class Program
{
public static void Main()
int i, j, input;
c.WriteLine("Input number of rows:");
input = int.Parse(Console.ReadLine());
c.WriteLine("\n");
for (i = 1; i <= input; i++)
for (j = 1; j <= i; j++)
c.Write(i + " ");
}
c.WriteLine();
c.WriteLine("");
for(j = 1; j <= i; j++)
c.Write(j + " ");
c.ReadLine();