declare var require: any; let lines: string[] = require("fs").readFileSync("/dev/stdin", "utf8").split("\n"); let S: string = lines[0]; let first: number = S.indexOf('#'); let last: number = S.indexOf('#', first+1); console.log(S.substring(first+1, last));