static void Main(string[] args) { ClapLight x = new ClapLight(); int[] a = { 1, 5, 6, 1, 1, 1, 1, 1, 1, 1 }; Console.WriteLine(x.threshold(a)); Console.ReadLine(); }