Program to identify 8, 6 or 9