Helper to parse score from spoj
mend