read n a read x sum=$(echo $x | tr " " "+" | bc) ans=$(($n*$a)) awk '{if(($ans == $sum)){print "YES";} else {print "NO";}}'