Intermediate Mathematical Challenge 2004