function Main(input) { var S = "" var is = input.split("\n"); for (var i=0;i