CodeLab Academy 📞 9936 6696
← List Python · Level 10: Algorithms Code · 100 points ← #911 #913 →

#912. Balanced brackets

If a string made of the brackets `()[]{}` is closed correctly, print `Yes`, otherwise `No`. Use a stack. ### Input One line. ### Output `Yes` or `No`.

Examples

Input
()
Output
Yes
Input
([]{})
Output
Yes

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!