main(i){putchar(i=1632[&i]|getchar()|64[&i]&1)%9&&main();}