I am trying to figure out an input/output problem:

Input Output
1 8
2 14
3 -
- 24
- 28
6 -