A group of 20 friends went to a party. On their way they found a certain number of gold coins. The number of coins is such that if they divide them equally, then 18 coins will remain. Had there been 1 friend less, 17 coins would have been left after dividing all the coins equally. Similarly, if the number of friends had been 18, the number of coins left after equal division would have been 16 and so on. Also, it is known that the number of coins is the least possible value that satisfies all these conditions. What would be the number of coins left if there were 50 friends?