// Your Problem:
// This is problem S5 Super Plumber of 2004
// The problem's instructions are at
// This problem's difficulty is 4/5
// The problem is provided by Waterloo CEMC, and the tests are provided by
// Waterloo CEMC as well as http://mmhs.ca/ccc
// Good Luck.
// Do not modify anything outside of the function or the function itself.
// CODE START
// YOUR CLASS NAME MUST BE `main`
// CODE END
// Press Ctrl+E (Command+E on mac) to test your code