A railway company keeps a record of one train on one journey. At every station where the train stops, the station master writes down three numbers: how many passengers left the train, how many boarded it, and how many were still waiting on the platform when the train pulled away.
The record has to obey these rules.
The numbers were collected on a snowy day, so a station master may have stayed in a warm office and made them up instead of going out to count. Decide whether the record can describe a real journey.
The first line contains two integers C and n (2≤n≤100), the capacity of the train and the number of stations where it stops.
Each of the next n lines contains three integers: the number of passengers who left the train at that station, the number who boarded, and the number who stayed waiting on the platform. The lines follow the order in which the train visits the stations.
Every integer, C included, is between 0 and 109.
Print one word. Print possible if the record obeys every rule, and impossible otherwise.