using System; using System.Text; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var a = int.Parse(Console.ReadLine().Trim()); var str = new StringBuilder(); var count = 1; Console.WriteLine(count); for (int i = 1; i < n; i++) { var b = int.Parse(Console.ReadLine().Trim()); if (b > a) count++; str.Append(string.Format("{0}\n", count)); Console.WriteLine(count); } } }