input example. output will be 3 28 4 23 4 10