#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*/ binary(int *, int /*<<< orphan*/, int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ quicksort(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int i, j, k, l, m, n, c = 0, ele, flag;
  int arr[101];
  char ch;
  scanf("%d", &m);
  for (i = 0; i < m; i++)
    scanf("%d", &arr[i]);
  quicksort(arr, 0, m - 1);
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    flag = 1;
    do {
      scanf("%d", &ele);
      if (!binary(arr, 0, m - 1, ele))
        flag = 0;
      printf("Helo\n");
      printf("%d\n", ele);
      printf("character is(%c)\n", ch);
    } while (ch == ' ' || ch == '\n');
    if (flag)
      c++;
  }
  printf("%d", c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1d0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x20(%rbp)
lea    0xea0(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1060 <scanf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11a8 <main+0x68>
movslq -0x8(%rbp),%rax
lea    -0x1c0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe6b(%rip),%rdi
call   1060 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1170 <main+0x30>
lea    -0x1c0(%rbp),%rdi
mov    -0x18(%rbp),%edx
sub    $0x1,%edx
xor    %esi,%esi
call   1040 <quicksort@plt>
lea    0xe3d(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1060 <scanf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12b0 <main+0x170>
movl   $0x1,-0x28(%rbp)
lea    0xe13(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   1060 <scanf@plt>
lea    -0x1c0(%rbp),%rdi
mov    -0x18(%rbp),%edx
sub    $0x1,%edx
mov    -0x24(%rbp),%ecx
xor    %esi,%esi
call   1030 <binary@plt>
cmp    $0x0,%eax
jne    121d <main+0xdd>
movl   $0x0,-0x28(%rbp)
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x1c1(%rbp),%esi
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x1c1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x1c2(%rbp)
je     127c <main+0x13c>
movsbl -0x1c1(%rbp),%eax
cmp    $0xa,%eax
sete   %al
mov    %al,-0x1c2(%rbp)
mov    -0x1c2(%rbp),%al
test   $0x1,%al
jne    11e6 <main+0xa6>
cmpl   $0x0,-0x28(%rbp)
je     129d <main+0x15d>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12a2 <main+0x162>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11d3 <main+0x93>
mov    -0x20(%rbp),%esi
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x1d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1a8,%rsp
lea    0xe98(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1070 <scanf@plt>
mov    0x4(%rsp),%edx
test   %edx,%edx
jle    11ad <main+0x5d>
lea    0x10(%rsp),%rbx
xor    %ebp,%ebp
lea    0xe78(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
add    $0x1,%rbp
movslq 0x4(%rsp),%rdx
add    $0x4,%rbx
cmp    %rdx,%rbp
jl     1190 <main+0x40>
add    $0xffffffff,%edx
lea    0x10(%rsp),%rdi
xor    %ebx,%ebx
xor    %esi,%esi
call   1050 <quicksort@plt>
lea    0xe3b(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1070 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    124f <main+0xff>
lea    0xe3c(%rip),%r13
lea    0xe1f(%rip),%rbp
lea    0xe1c(%rip),%r14
xor    %r12d,%r12d
xor    %ebx,%ebx
lea    0xe09(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1070 <scanf@plt>
mov    0x4(%rsp),%edx
add    $0xffffffff,%edx
mov    0x8(%rsp),%ecx
lea    0x10(%rsp),%rdi
xor    %esi,%esi
call   1040 <binary@plt>
mov    %eax,%r15d
mov    %r13,%rdi
call   1030 <puts@plt>
mov    0x8(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x1,%r15d
sbb    $0xffffffff,%ebx
add    $0x1,%r12d
cmp    0xc(%rsp),%r12d
jl     11f0 <main+0xa0>
lea    0xdaa(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x1a8,%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"Helo\0A\00"
@.str.2 = [4 x i8] c"%d\0A\00"
@.str.3 = [18 x i8] c"character is(%c)\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
%9 = alloca i32
%10 = alloca i32
%11 = alloca [101 x i32]
%12 = alloca i8
store i32 0, i32* %1
store i32 0, i32* %8
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
store i32 0, i32* %2
br label %14
14: ; preds = %23, %0
%15 = load i32, i32* %2
%16 = load i32, i32* %6
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %26
18: ; preds = %14
%19 = load i32, i32* %2
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [101 x i32], [101 x i32]* %11, i64 0, i64 %20
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %21)
br label %23
23: ; preds = %18
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
store i32 %25, i32* %2
br label %14
26: ; preds = %14
%27 = getelementptr inbounds [101 x i32], [101 x i32]* %11, i64 0, i64 0
%28 = load i32, i32* %6
%29 = sub nsw i32 %28, 1
%30 = call i32 @quicksort(i32* %27, i32 0, i32 %29)
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
store i32 0, i32* %2
br label %32
32: ; preds = %70, %26
%33 = load i32, i32* %2
%34 = load i32, i32* %7
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %73
36: ; preds = %32
store i32 1, i32* %10
br label %37
37: ; preds = %61, %36
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %9)
%39 = getelementptr inbounds [101 x i32], [101 x i32]* %11, i64 0, i64 0
%40 = load i32, i32* %6
%41 = sub nsw i32 %40, 1
%42 = load i32, i32* %9
%43 = call i32 @binary(i32* %39, i32 0, i32 %41, i32 %42)
%44 = icmp ne i32 %43, 0
br i1 %44, label %46, label %45
45: ; preds = %37
store i32 0, i32* %10
br label %46
46: ; preds = %45, %37
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%48 = load i32, i32* %9
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %48)
%50 = load i8, i8* %12
%51 = sext i8 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %51)
br label %53
53: ; preds = %46
%54 = load i8, i8* %12
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 32
br i1 %56, label %61, label %57
57: ; preds = %53
%58 = load i8, i8* %12
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 10
br label %61
61: ; preds = %57, %53
%62 = phi i1 [ true, %53 ], [ %60, %57 ]
br i1 %62, label %37, label %63
63: ; preds = %61
%64 = load i32, i32* %10
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = load i32, i32* %8
%68 = add nsw i32 %67, 1
store i32 %68, i32* %8
br label %69
69: ; preds = %66, %63
br label %70
70: ; preds = %69
%71 = load i32, i32* %2
%72 = add nsw i32 %71, 1
store i32 %72, i32* %2
br label %32
73: ; preds = %32
%74 = load i32, i32* %8
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %74)
ret i32 0
}

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