https://github.com/AhmedHani/Online-Judges-Problems-SourceCode/blob/master/UVa/11157%20-%20Dynamic%20Frog.java