After you step out of the MönchsbergAufzug lift at the bottom of the mountain, you can purchase your ticket at the ticket window by the exit.