#/usr/sh read A B C D echo `expr ($A \* $B \* $C) % $D`