Michelle got a job as a teacher at the university. Michelle teaches in the same auditorium with another teacher, but she has forgotten where this auditorium is. Michelle knows how many students she has in the group a and how many auditoriums b in the university, their capacity c and how many students are inside d.
Source: https://www.codingame.com
Line 1: An integer number a of students in Michelle's group.
Line 2: An integer number b of auditoriums in the university. Next b lines: Two space separated integers c and d for the capacity each other auditorium and studens are inside