the bank machine that can provide change for given amount