How to pay for urban transport in Nizhny Novgorod ?

How much is a ticket for the bus, the subway?How and where to buy a ticket ?