Medium
Parse key=value
Read n lines of the form
key=number (n first). Lines that don't follow the format are skipped. Print the total of the valid numbers and the count of bad lines.Input
n, then n lines.
Output
total bad
Sample 1
Input
3 a=1 b=2 c=x
Output
3 1
Sample 2
Input
2 noequals a=b=c
Output
0 2
Output appears here