How to print only numbers that a was select