f | arr = [] | f | arr = [] |
t | for i in range(101): | t | for i in range(0, 101): |
| tmp = [0] * 101 | | tmp = [0] * 101 |
| arr.append(tmp) | | arr.append(tmp) |
| s = input() | | s = input() |
| while s != '': | | while s != '': |
| s = [int(x) for x in s.split(',')] | | s = [int(x) for x in s.split(',')] |
| arr[s[0]][s[1]] += 1 | | arr[s[0]][s[1]] += 1 |
| s = input() | | s = input() |
| for i in range(0, 101): | | for i in range(0, 101): |
| for j in range(0, 101): | | for j in range(0, 101): |
| for k in range(0, arr[i][j]): | | for k in range(0, arr[i][j]): |
| print(str(i) + ', ' + str(j)) | | print(str(i) + ', ' + str(j)) |