PROGRAMMING:parenthesis matching
Check whether the brackets' () ', middle brackets' []', and curly brackets' {} 'of a piece of C language code match.
###Input format:
Input a section of C language code in a line, the length is not more than 1000 characters (the end of the line ends with a new line character).
###Output format:
The first line outputs the number of left brackets and right brackets, separated by a space< br>
If the brackets match, print 'yes' on the second line, otherwise print' no '.
###Input sample 1:
```in
for(int i=0; iAdj[i][j])); }
```
###Output sample 1:
```out
8 8
YES
```
###Input sample 2:
```
for(int i=0; i```
###Output sample 2:
```
2 2
NO
```
answer:If there is no answer, please comment
###Input format:
Input a section of C language code in a line, the length is not more than 1000 characters (the end of the line ends with a new line character).
###Output format:
The first line outputs the number of left brackets and right brackets, separated by a space< br>
If the brackets match, print 'yes' on the second line, otherwise print' no '.
###Input sample 1:
```in
for(int i=0; i
```
###Output sample 1:
```out
8 8
YES
```
###Input sample 2:
```
for(int i=0; i
###Output sample 2:
```
2 2
NO
```
answer:If there is no answer, please comment