##
var n := ReadInteger;
var a := ReadArrInteger(n);
var m := a.Max;
var b := a.Where(t -> t <> m).ToArray;
b.Print
##
var n := ReadInteger;
var a := ReadArrInteger(n);
var m := a.Max;
var b := a.Where(t -> t <> m).ToArray;
b.Print