Problem Description

Given a postfix expression with space-separated tokens (numbers and + - * /). Evaluate it and print result. Division is integer division toward zero.

Input Format

One line postfix expression.

Output Format

One integer.

Sample Test Case

Input:
10 2 3 * + 9 -
Output:
7

Constraints

Tokens count up to 2e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next