read addition and multiplication