#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 i, n, l;
  int cont2, cont3, cont4, cont5;
  cont2 = cont3 = cont4 = cont5 = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &l);
    if (l % 2 == 0) {
      cont2++;
    }
    if (l % 3 == 0) {
      cont3++;
    }
    if (l % 4 == 0) {
      cont4++;
    }
    if (l % 5 == 0) {
      cont5++;
    }
  }
  printf("%d Multiplo(s) de 2\n", cont2);
  printf("%d Multiplo(s) de 3\n", cont3);
  printf("%d Multiplo(s) de 4\n", cont4);
  printf("%d Multiplo(s) de 5\n", cont5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xeae(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1205 <main+0xe5>
lea    0xe8b(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x10(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    119b <main+0x7b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11b8 <main+0x98>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11d5 <main+0xb5>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11f2 <main+0xd2>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11f7 <main+0xd7>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1162 <main+0x42>
mov    -0x14(%rbp),%esi
lea    0xdf4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xdfa(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xe00(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xe06(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
cmpl   $0x0,(%rsp)
jle    11bd <main+0x9d>
xor    %r14d,%r14d
lea    0x4(%rsp),%r13
xor    %r15d,%r15d
xor    %ebx,%ebx
xor    %ebp,%ebp
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xe99(%rip),%rdi
mov    %r13,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
mov    %eax,%ecx
not    %ecx
and    $0x1,%ecx
add    %ecx,%ebp
imul   $0xaaaaaaab,%eax,%ecx
add    $0x2aaaaaaa,%ecx
cmp    $0x55555555,%ecx
adc    $0x0,%ebx
imul   $0xcccccccd,%eax,%ecx
and    $0x3,%eax
cmp    $0x1,%eax
adc    $0x0,%r15d
add    $0x19999999,%ecx
cmp    $0x33333333,%ecx
adc    $0x0,%r14d
add    $0x1,%r12d
cmp    (%rsp),%r12d
jl     1160 <main+0x40>
jmp    11c7 <main+0xa7>
xor    %ebp,%ebp
xor    %ebx,%ebx
xor    %r15d,%r15d
xor    %r14d,%r14d
lea    0xe35(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
lea    0xe3c(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
lea    0xe43(%rip),%rdi
mov    %r15d,%esi
call   1030 <printf@plt>
lea    0xe49(%rip),%rdi
mov    %r14d,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%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 = [21 x i8] c"%d Multiplo(s) de 2\0A\00"
@.str.2 = [21 x i8] c"%d Multiplo(s) de 3\0A\00"
@.str.3 = [21 x i8] c"%d Multiplo(s) de 4\0A\00"
@.str.4 = [21 x i8] c"%d Multiplo(s) de 5\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %8
store i32 0, i32* %7
store i32 0, i32* %6
store i32 0, i32* %5
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
store i32 0, i32* %2
br label %10
10: ; preds = %44, %0
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %47
14: ; preds = %10
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%16 = load i32, i32* %4
%17 = srem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 1
store i32 %21, i32* %5
br label %22
22: ; preds = %19, %14
%23 = load i32, i32* %4
%24 = srem i32 %23, 3
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load i32, i32* %6
%28 = add nsw i32 %27, 1
store i32 %28, i32* %6
br label %29
29: ; preds = %26, %22
%30 = load i32, i32* %4
%31 = srem i32 %30, 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load i32, i32* %7
%35 = add nsw i32 %34, 1
store i32 %35, i32* %7
br label %36
36: ; preds = %33, %29
%37 = load i32, i32* %4
%38 = srem i32 %37, 5
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, i32* %8
%42 = add nsw i32 %41, 1
store i32 %42, i32* %8
br label %43
43: ; preds = %40, %36
br label %44
44: ; preds = %43
%45 = load i32, i32* %2
%46 = add nsw i32 %45, 1
store i32 %46, i32* %2
br label %10
47: ; preds = %10
%48 = load i32, i32* %5
%49 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %6
%51 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %7
%53 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %8
%55 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %54)
ret i32 0
}

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