using System; using System.Collections.Generic; using System.Linq; class prog { static void Main() { var n=long.Parse(Console.ReadLine()).Validate(x=>1(); for(long i=1;i*i<=n;i++){ if(n%i==0) { div.Add(i); if(i!=(n/i))div.Add(n/i); } } div.Sort(); var val=new long[div.Count,3]; for(int i=0;i(this T input, Func f) { if (!f(input)) throw new Exception("invalid input"); return input; } static public T[] ValidateArray(this T[] input, Func f) { foreach (var x in input) if (!f(x)) throw new Exception("invalid input"); return input; } }