Fer un recompte de les vegades que la nostra empresa supera en
facturació a la competència.
Entrada
La entrada són diverses línies amb parelles d’enters positius fins
que arriba el text THE END.
Sortida
La sortida ha de ser la quantitat de vegades que el primer valor de
facturació supera al segon.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
Input
1200 900
850 1000
1500 1200
950 900
THE END
Output
3
Input
1200 900
850 1000
1500 1200
950 900
THE END
Output
3
Input
600 600
500 500
400 400
300 100
THE END
Output
1
Input
600 600
500 500
400 400
300 100
THE END
Output
1
Input
600 700
400 800
200 900
100 700
200 700
400 600
0 700
100 300
THE END
Output
0
Input
600 700
400 800
200 900
100 700
200 700
400 600
0 700
100 300
THE END