By now I had the hang of the ticket machine.
First
, put in the money.
Then
, you will see choices with different prices. Better know the price you need, if you don't read Japanese.