Wrong output on submission and running as custom


#1

A : " 9 2704 01885D 9M 65291S844404U7463"
This is the input.
On submitting, the returned value is 7.
On running as custom input, value is 9 as expected.