Functions selecting single value from a groups of integer numbers using specified criteria.