Parentheses

Given a sequence made up of only ‘(’ and ‘)’, tell if the parentheses close correctly.

Input

Input consists of a sequence of parentheses.

Output

Print “yes” or “no”, depending on whether the parentheses close correctly or not.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:11:09.999Z

© Jutge.org, 2006–2026.
https://jutge.org