Write a program that finds the elements in an array of integers that are closest to a given integer. If you find several integers with the same distance to N, you should output all of them in ascending order. If there are several equal numbers, output them all.
Input: a set of integers and a number N.
Output: some number(s) from the given array.