In the country of Limonia, coins with denominations of , and piastres are in circulation, where is a natural number. A resident of the country went to the bank without any cash. What is the largest amount of money the bank will not be able to provide him?