Me too. I think I have seen this puzzle somewhere, maybe a math olympiad?