Problem Description

Evaluate postfix expression. If it ever divides by zero or lacks operands, print ERROR.

Input Format

One line tokens.

Output Format

Result or ERROR.

Sample Test Case

Input:
6 0 /
Output:
ERROR

Constraints

Token count

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next