// Your Problem:
// This is problem S3: Alice through the Looking Glass of 2011
// The problem's instructions are at
// This problem's difficulty is 3/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