($N,$M)=<>; if($M eq"0\n"){ print 1 }else{ ($N,$M)=($N=~/(.)$/,$M=~/(..?)$/); exec"dc -'e$N $M 100+10|p'" }