PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SCKTCUOIKI0005. Máy tính với bốn lựa chọn (Four-Operation Calculator)

Bài tập này chưa được xếp vào lộ trình.

Máy tính với bốn lựa chọn (Four-Operation Calculator)

Four-Operation Calculator

**Version: Phuoc Hung OJ Extended

Problem Statement

A calculator takes two nonnegative integers aa, bb and an operation code chonchon. Code 11 means a+ba+b, code 22 means a−ba-b, code 33 means a×ba\times b, and code 44 means the integer quotient of aa divided by bb (discarding the remainder). Other codes are invalid. The input guarantees b>0b>0.

Input

The first line contains integer aa.

The second line contains integer bb.

The third line contains integer chonchon.

Output

If chonchon is valid, print exactly one integer representing the selected operation; for code 44, print only the integer quotient. Otherwise print exactly Không hợp lệ.

Subtasks

  • Subtask 1 (20 points): 0≤a≤1000\le a\le100; 1≤b≤1001\le b\le100; 1≤chon≤21\le chon\le2.
  • Subtask 2 (30 points): 0≤a≤10000\le a\le1000; 1≤b≤10001\le b\le1000; 1≤chon≤41\le chon\le4.
  • Subtask 3 (50 points): 0≤a≤10000\le a\le1000; 1≤b≤10001\le b\le1000; 0≤chon≤50\le chon\le5.

Examples

Input

23
5
4

Output

4

Explanation

The values are a=23a=23, b=5b=5, chon=4chon=4. Operation 44 requests the integer quotient. Since 23=5×4+323=5\times4+3, the quotient is 44, which is printed.