Input (grade 11): It is played using a cue and snooker balls: one white, 15 worth one point each, and six balls of different yellow (2 points), green (3), brown (4), blue (5), pink (6) and black (7).
Output (grade 9): There are 15 red balls (worth 1 point each) and 6 colours: a yellow (2 points), green (3 points), brown (4 points), blue (5 points), pink (6 points) and black ball (7 points).