while(0<1)println(readLine map(9>>_%9&3)sum)