You can get pretty much anything in vending machines in Nagasaki. Vending machines with pop/juice/canned coffee are everywhere. Cigarette and booze vending machines are also extremely common. Refrigerated vending machines with 100% juice, milk, or ice cream are easily found in buildings. One less common one I spotted this afternoon sells batteries.
Oh, and here's a random shot of some Japanese currency. I don't have a 5000 yen bill at this time. One yen coins are like cheap Monopoly money.