Due to some technical reasons, this problem is configured as an interactive problem.
If you read input until EOF, please flush output buffer after writing each output.
As we are currently experiencing an overwhelming number of web requests for fetching user submissions, we have temporarily disabled the full submissions list. You must now be logged in to view submissions.
Due to some technical reasons, this problem is configured as an interactive problem.
If you read input until EOF, please flush output buffer after writing each output.
We understand that our problem archive is not perfect. If you find any issues with the problem, including the statement, scoring configuration, time/memory limits, test cases, etc.
You may use this form to submit an issue regarding the problem. A problem moderator will review your issue and proceed it properly.
STOP! Before you submit an issue, please READ the following guidelines: