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