Dennis Lee Bieber wrote: > (untested for both): > -=-=-=-=-=-=- Many thanks but alas both your codes got "wrong answer" verdict. I can't understand why; they seem Ok (but I'm a bit sleepy:)).