You may buy a ticket at a ticket desk both at the airport and at the Paveletskiy railway station terminal.