That's right. If the app sends just that format string with no CR or LF, you will not get a 0.
But the second call to parseInt will take 1 second to return the second number, assuming default serial timeout. That delay may or may not be a problem for you.