To get on the train you must have a ticket or IC card to get on. For all the major train types you pay based on distance of travel. For using a ticket put in as you go through the gates then take it out when you first pass through. When leaving you will put it in and the machine will keep it. With the IC card you will tap it as you get in on and off. If you don’t have enough money on the IC card or ticket there are adjust fare machines around the exit. With those you just enter in your ticket or IC card and it will tell you how much to pay.