The input is guaranteed to follow the input specification as written in the problem, and you do not need to validate the input you get from Kattis.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article