$/=words;say (0,$0,$1,$2,*+*+*...*)[$3%124]%10