#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *, ...);
int main() {
  int n;
  scanf("%d", &n);
  int a[n], i, count[100];
  for (i = 0; i < 100; i++)
    count[i] = 0;
  char b[n];
  for (i = 0; i < n; i++) {
    scanf("%d %s", &a[i], &b[i]);
    count[a[i]]++;
  }
  int count1 = 0, j;
  for (i = 0; i < 100; i++) {
    for (j = 0; j < count[i]; j++)
      count1++;
    printf("%d ", count1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1d0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec7(%rip),%rdi
xor    %eax,%eax
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x1c8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    119c <main+0x7c>
movslq -0x1c(%rbp),%rax
movl   $0x0,-0x1b0(%rbp,%rax,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1175 <main+0x55>
mov    -0x8(%rbp),%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x1d0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x1b8(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1230 <main+0x110>
mov    -0x1c8(%rbp),%rsi
mov    -0x1d0(%rbp),%rdx
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x1c(%rbp),%rax
add    %rax,%rdx
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x1c8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movslq (%rax,%rcx,4),%rax
mov    -0x1b0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x1b0(%rbp,%rax,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11c8 <main+0xa8>
movl   $0x0,-0x1bc(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    12af <main+0x18f>
movl   $0x0,-0x1c0(%rbp)
mov    -0x1c0(%rbp),%eax
movslq -0x1c(%rbp),%rcx
cmp    -0x1b0(%rbp,%rcx,4),%eax
jge    128f <main+0x16f>
mov    -0x1bc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1bc(%rbp)
mov    -0x1c0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c0(%rbp)
jmp    1255 <main+0x135>
mov    -0x1bc(%rbp),%esi
lea    0xd6d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1241 <main+0x121>
movl   $0x0,-0x4(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1a8,%rsp
lea    0xeb5(%rip),%rdi
xor    %r12d,%r12d
lea    -0x2c(%rbp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rsp,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
mov    %rsp,%r14
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
lea    -0x1d0(%rbp),%rdi
mov    $0x190,%edx
xor    %esi,%esi
call   1040 <memset@plt>
mov    -0x2c(%rbp),%eax
mov    %rsp,%rbx
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%rbx
mov    %rbx,%rsp
test   %eax,%eax
jle    11e0 <main+0xb0>
lea    0xe59(%rip),%r15
xor    %r13d,%r13d
nopl   (%rax)
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
movslq (%r14),%rax
addl   $0x1,-0x1d0(%rbp,%rax,4)
01
add    $0x1,%r13
movslq -0x2c(%rbp),%rax
add    $0x1,%rbx
add    $0x4,%r14
cmp    %rax,%r13
jl     11b0 <main+0x80>
lea    0xe22(%rip),%r14
xor    %ebx,%ebx
xor    %r15d,%r15d
nopl   0x0(%rax)
mov    -0x1d0(%rbp,%rbx,4),%eax
test   %eax,%eax
cmovs  %r12d,%eax
add    %eax,%r15d
mov    %r14,%rdi
mov    %r15d,%esi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    $0x64,%rbx
jne    11f0 <main+0xc0>
mov    -0x38(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%d %s\00"
@.str.2 = [4 x i8] c"%d \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32
%6 = alloca [100 x i32]
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
%10 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %2
%12 = zext i32 %11 to i64
%13 = call i8* @llvm.stacksave()
store i8* %13, i8** %3
%14 = alloca i32, i64 %12
store i64 %12, i64* %4
store i32 0, i32* %5
br label %15
15: ; preds = %22, %0
%16 = load i32, i32* %5
%17 = icmp slt i32 %16, 100
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = load i32, i32* %5
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %20
store i32 0, i32* %21
br label %22
22: ; preds = %18
%23 = load i32, i32* %5
%24 = add nsw i32 %23, 1
store i32 %24, i32* %5
br label %15
25: ; preds = %15
%26 = load i32, i32* %2
%27 = zext i32 %26 to i64
%28 = alloca i8, i64 %27
store i64 %27, i64* %7
store i32 0, i32* %5
br label %29
29: ; preds = %49, %25
%30 = load i32, i32* %5
%31 = load i32, i32* %2
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %52
33: ; preds = %29
%34 = load i32, i32* %5
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, i32* %14, i64 %35
%37 = load i32, i32* %5
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, i8* %28, i64 %38
%40 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %36, i8* %39)
%41 = load i32, i32* %5
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, i32* %14, i64 %42
%44 = load i32, i32* %43
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %45
%47 = load i32, i32* %46
%48 = add nsw i32 %47, 1
store i32 %48, i32* %46
br label %49
49: ; preds = %33
%50 = load i32, i32* %5
%51 = add nsw i32 %50, 1
store i32 %51, i32* %5
br label %29
52: ; preds = %29
store i32 0, i32* %8
store i32 0, i32* %5
br label %53
53: ; preds = %73, %52
%54 = load i32, i32* %5
%55 = icmp slt i32 %54, 100
br i1 %55, label %56, label %76
56: ; preds = %53
store i32 0, i32* %9
br label %57
57: ; preds = %67, %56
%58 = load i32, i32* %9
%59 = load i32, i32* %5
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [100 x i32], [100 x i32]* %6, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = icmp slt i32 %58, %62
br i1 %63, label %64, label %70
64: ; preds = %57
%65 = load i32, i32* %8
%66 = add nsw i32 %65, 1
store i32 %66, i32* %8
br label %67
67: ; preds = %64
%68 = load i32, i32* %9
%69 = add nsw i32 %68, 1
store i32 %69, i32* %9
br label %57
70: ; preds = %57
%71 = load i32, i32* %8
%72 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %71)
br label %73
73: ; preds = %70
%74 = load i32, i32* %5
%75 = add nsw i32 %74, 1
store i32 %75, i32* %5
br label %53
76: ; preds = %53
store i32 0, i32* %1
%77 = load i8*, i8** %3
%78 = load i32, i32* %1
ret i32 %78
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%d %s\00"
@.str.2 = [4 x i8] c"%d \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i32]
%3 = bitcast [100 x i32]* %2 to i8*
%4 = bitcast i32* %1 to i8*
%5 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = zext i32 %6 to i64
%8 = call i8* @llvm.stacksave()
%9 = alloca i32, i64 %7
%10 = load i32, i32* %1
%11 = zext i32 %10 to i64
%12 = alloca i8, i64 %11
%13 = icmp sgt i32 %10, 0
br i1 %13, label %14, label %28
14: ; preds = %0, %14
%15 = phi i64 [ %24, %14 ], [ 0, %0 ]
%16 = getelementptr inbounds i32, i32* %9, i64 %15
%17 = getelementptr inbounds i8, i8* %12, i64 %15
%18 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %16, i8* %17)
%19 = load i32, i32* %16
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %20
%22 = load i32, i32* %21
%23 = add nsw i32 %22, 1
store i32 %23, i32* %21
%24 = add nuw nsw i64 %15, 1
%25 = load i32, i32* %1
%26 = sext i32 %25 to i64
%27 = icmp slt i64 %24, %26
br i1 %27, label %14, label %28
28: ; preds = %14, %0
br label %29
29: ; preds = %28, %29
%30 = phi i64 [ %38, %29 ], [ 0, %28 ]
%31 = phi i32 [ %36, %29 ], [ 0, %28 ]
%32 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %30
%33 = load i32, i32* %32
%34 = icmp sgt i32 %33, 0
%35 = select i1 %34, i32 %33, i32 0
%36 = add i32 %31, %35
%37 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %36)
%38 = add nuw nsw i64 %30, 1
%39 = icmp eq i64 %38, 100
br i1 %39, label %40, label %29
40: ; preds = %29
ret i32 0
}