Problems
10050 - RITA v1.0
SUBMIT PROBLEM

RITA v1.0

Time Limit: 1.5 sec

 

The Problem

Riyad is good at Robotics. Recently he has made a robot. He named it RITA. He wants RITA to follow instructions like ADD, MULT etc. RIyad is not that good at programming, so he needs your help to make RITA follow the instructions.

 

Initially Riyad wants you to write a code that will make RITA follow 2 commands. These are-

1. ADD N1 N2 : This command will make RITA to add N1 and N2 .

2. MULT N1 N2 : This command will make RITA to multiply N1 and N2 .

 

 

The Input

Every line of input will contain one command for RITA. There will be two types of command- ADD N1 N2 and MULT N1 N2. Where 0<=N1,N2<=1000000000. Input is terminated by EOF.

 

The Output

For every line of input, print the result for every command.

 

Sample Input 

ADD 20 10

MULT 34 9

ADD 100 543

 

Sample Output

30

306

643

 

 

 

Note:

In the first sample, ADD 20 10 command will give the result 20+10=30. 

 

Online Practice Contest 2 [School & College Level]

Problem Setter: Fahim Abrar