process.stdin.on("data",c=>{f=r=>(""+c).split(r).length;a=f(/[04689]/)+f`8`;b=f``;console.log((a