Solved. Thank you!
I'm not sure if you're going to correct way ... I just solved the problem with a much more simpler approach
but did you already check the numbers 0,1,2,25?
I got 0016