let a="";for(i of require("fs").readFileSync("/dev/stdin", "utf8")){a+=i>='a'?"0":"1";}console.log(a);