Условие:

96
95
94
8 + 7
7 + 7
7 + 6
2 + 64
3 + 56
6 + 38
18810
19109
1717 + 8

96 = 3
95 = 4
94 = 5
8 + 7 = 15
7 + 7 = 14
7 + 6 = 13
2 + 64 = 84 = 4
3 + 56 = 86 = 2
6 + 38 = 98 = 1
18810 = 1010 = 0
19109 = 99 = 0
1717 + 8 = 0 + 8 = 8