> For the complete documentation index, see [llms.txt](https://rayyanwong.gitbook.io/rayyan/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rayyanwong.gitbook.io/rayyan/programming/ccc-2022-junior/fergusonball-ratings.md).

# Fergusonball Ratings

```python
n = int(input())
counter = 0
for i in range(n):
    score = int(input())
    foul = int(input())
    points = 0
    points = score*5 - foul*3
    if points > 40:
        counter += 1

if counter == n:
    print(counter,"+")
else:
    print(counter)
```
