John has collected 365 coins. He decided to put equal numbers of them in his 140 wallets. However, he found out he would still have some coins left after evenly distributing them into these wallets. How many coins will John have left?