I am not so sure that this is going to work.  If the answer is 4 and I return 34 or 44, the condition you check for will work which is clearly wrong.