import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] sum = new int[N]; while(M-->0){ int L = sc.nextInt(); sum[N-L]++; int R = sc.nextInt(); sum[N-R]--; } int now = 0; for(int sub:sum){ now += sub; System.out.println(now); } } }