say words>>.&{($_%%3+$_%%5)*4||.chars}.sum