read {a..d} echo $(( a * b * c % d ))