At a meeting for math enthusiasts, two entrance fees are charged. Anyone who knows the code word “algemath” only pays 2 euros. Those who are unlucky and do not know the code word pay three euros more. You know that 7338 people were present and that the cashier received 17487 euros. How many people knew the password?