PROGRAMMING:Balancing Symbols
Check a section of C code if the parenthesis ( ), brackets [ ], and braces { } are balanced. For simplicity, there is only ONE line in the code.
### Input Specification:
Each input file contains one test case. For each case, there is only ONE line of a section of C Programming Language code containing no more than 1000 character ending with a `\n` .
### Output Specification:
For each test case, print the number of opening symbols and the number of closing symbols in the first line with one space between them. And in the second line print YES if there is no mismatching in the code, or print NO if the symbols mismatch.
### Sample Input 1:
```in
for(int i=0; iAdj[i][j])); }
```
### Sample Output 1:
```out
8 8
YES
```
### Sample Input 2:
```
for(int i=0; i```
### Sample Output 2:
```
2 2
NO
```
answer:If there is no answer, please comment
### Input Specification:
Each input file contains one test case. For each case, there is only ONE line of a section of C Programming Language code containing no more than 1000 character ending with a `\n` .
### Output Specification:
For each test case, print the number of opening symbols and the number of closing symbols in the first line with one space between them. And in the second line print YES if there is no mismatching in the code, or print NO if the symbols mismatch.
### Sample Input 1:
```in
for(int i=0; i
```
### Sample Output 1:
```out
8 8
YES
```
### Sample Input 2:
```
for(int i=0; i
### Sample Output 2:
```
2 2
NO
```
answer:If there is no answer, please comment