function Main(input) { input = input.split(" "); var M=parseInt(input[0]); var D=parseInt(input[1]); var num=M*100+D; for(var i=2;i