Specified the numbers into groups