https://www.codechef.com/COOK132B/problems/CLOSCHEF
Input Format
Check Link
Output Format
Check Link
Constraints
Check Link
Example
Input
3 3 1 0 3 3 1 -1 -1 3 1 3 3
Output
1 1 0
https://www.codechef.com/COOK132B/problems/CLOSCHEF
Check Link
Check Link
Check Link
3 3 1 0 3 3 1 -1 -1 3 1 3 3
1 1 0