I'll help but I'm not going to do it for you.
How far have you got and where are you stuck?
Do you know how to read the 25 bytes?
Do you know how to check whether something is positive or negative? (What about zero?)
Presumably you'll be storing the results somewhere; do you know how to do that?