My receipt machine is given the standard input:



10/10/08 12:00
A1:2.31:1:p
2b:1.98:2:g
A1:2.31:2:P

where the first line is the time and the other lines are purchases (item name: price:...