The first line contains the number of zones N and the number of pieces of information M. (1≤N,M≤300)
Each of the next M lines contains one piece of information as two integers, the leftmost zone number L and the rightmost zone number R of the interval. (0≤L≤R≤N−1) The interval includes both end zones, and the information means that zones L through R hold at most two wolves in total. The same interval is given more than once in some inputs.