*p="(u{8!|b2#eh7%=!*)0~T%5>a33Ftz#-,C0Po6X~{fKgr0-ϒ0Meu+?N/4h!U",i=12;main(n){gets(&n);for(printf("%d.",n=n%9/3);i--;printf("%d",i[p+n*12]));}