using System; using System.Linq; namespace Solution { class AC { static void Main(string[] args) { var (N, M) = Cin.Input(); var A = Cin.ReadSplitInt(); int type = A.Distinct().Count(); Console.WriteLine($"{type} 0"); } } } static class Cin { public static string Str() => Console.ReadLine(); public static int Int() => int.Parse(Cin.Str()); public static long Long() => long.Parse(Cin.Str()); public static double Double() => double.Parse(Cin.Str()); private static T Conv(string value) => (T)Convert.ChangeType(value, typeof(T)); public static (T, U) ReadTuple(string[] input) => (Conv(input[0]), Conv(input[1])); public static (T, U, V) ReadTuple(string[] input) => (Conv(input[0]), Conv(input[1]), Conv(input[2])); public static (T, U, V, W) ReadTuple(string[] input) => (Conv(input[0]), Conv(input[1]), Conv(input[2]), Conv(input[3])); public static (T, U, V, W, X) ReadTuple(string[] input) => (Conv(input[0]), Conv(input[1]), Conv(input[2]), Conv(input[3]), Conv(input[4])); public static (T, U) Input() => ReadTuple(ReadSplit()); public static (T, U, V) Input() => ReadTuple(ReadSplit()); public static (T, U, V, W) Input() => ReadTuple(ReadSplit()); public static (T, U, V, W, X) Input() => ReadTuple(ReadSplit()); public static string[] ReadSplit() => Console.ReadLine().Split(); public static string[] ReadSplit(char separator) => Console.ReadLine().Split(separator); public static int[] ReadSplitInt() => Array.ConvertAll(ReadSplit(), int.Parse); public static long[] ReadSplitLong() => Array.ConvertAll(ReadSplit(), long.Parse); public static double[] ReadSplit_Double() => Array.ConvertAll(ReadSplit(), double.Parse); }