#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 */
scalar_t__ modify(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  char password[1100][2][20];
  int flag[1100] = {0};
  int n, count = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++)
    scanf("%s %s", password[i][0], password[i][1]);
  for (int i = 0; i < n; i++) {
    if (modify(password[i][1])) {
      count++;
      flag[i] = 1;
    }
  }
  if (count == 0) {
    if (n == 1)
      printf("There is 1 account and no account is modified\n");
    else
      printf("There are %d accounts and no account is modified\n", n);
  } else {
    printf("%d\n", count);
    for (int i = 0; i < n; i++) {
      if (flag[i])
        printf("%s %s\n", password[i][0], password[i][1]);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xbd40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xbd20(%rbp),%rdi
xor    %esi,%esi
mov    $0x1130,%edx
call   1050 <memset@plt>
movl   $0x0,-0xbd28(%rbp)
lea    0xe8a(%rip),%rdi
lea    -0xbd24(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movl   $0x0,-0xbd2c(%rbp)
mov    -0xbd2c(%rbp),%eax
cmp    -0xbd24(%rbp),%eax
jge    11f0 <main+0xb0>
movslq -0xbd2c(%rbp),%rax
lea    -0xabf0(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
movslq -0xbd2c(%rbp),%rax
lea    -0xabf0(%rbp),%rdx
imul   $0x28,%rax,%rax
add    %rax,%rdx
add    $0x14,%rdx
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
mov    -0xbd2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbd2c(%rbp)
jmp    118e <main+0x4e>
movl   $0x0,-0xbd30(%rbp)
mov    -0xbd30(%rbp),%eax
cmp    -0xbd24(%rbp),%eax
jge    126e <main+0x12e>
movslq -0xbd30(%rbp),%rax
lea    -0xabf0(%rbp),%rdi
imul   $0x28,%rax,%rax
add    %rax,%rdi
add    $0x14,%rdi
call   1030 <modify@plt>
cmp    $0x0,%rax
je     1255 <main+0x115>
mov    -0xbd28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbd28(%rbp)
movslq -0xbd30(%rbp),%rax
movl   $0x1,-0xbd20(%rbp,%rax,4)
jmp    125a <main+0x11a>
mov    -0xbd30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbd30(%rbp)
jmp    11fa <main+0xba>
cmpl   $0x0,-0xbd28(%rbp)
jne    12b4 <main+0x174>
cmpl   $0x1,-0xbd24(%rbp)
jne    129b <main+0x15b>
lea    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12af <main+0x16f>
mov    -0xbd24(%rbp),%esi
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1353 <main+0x213>
mov    -0xbd28(%rbp),%esi
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xbd34(%rbp)
mov    -0xbd34(%rbp),%eax
cmp    -0xbd24(%rbp),%eax
jge    134e <main+0x20e>
movslq -0xbd34(%rbp),%rax
cmpl   $0x0,-0xbd20(%rbp,%rax,4)
je     1335 <main+0x1f5>
movslq -0xbd34(%rbp),%rax
lea    -0xabf0(%rbp),%rsi
imul   $0x28,%rax,%rax
add    %rax,%rsi
movslq -0xbd34(%rbp),%rax
lea    -0xabf0(%rbp),%rdx
imul   $0x28,%rax,%rax
add    %rax,%rdx
add    $0x14,%rdx
lea    0xd40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    133a <main+0x1fa>
mov    -0xbd34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbd34(%rbp)
jmp    12d2 <main+0x192>
jmp    1353 <main+0x213>
xor    %eax,%eax
add    $0xbd40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0xbd20,%rsp
lea    0x10(%rsp),%rdi
mov    $0x1130,%edx
xor    %esi,%esi
call   1060 <memset@plt>
lea    0xe8d(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0xc(%rsp),%esi
test   %esi,%esi
jle    1281 <main+0x131>
lea    0x1140(%rsp),%rbx
lea    0xe69(%rip),%r14
xor    %ebp,%ebp
nopl   0x0(%rax)
lea    0x14(%rbx),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
add    $0x1,%rbp
movslq 0xc(%rsp),%rsi
add    $0x28,%rbx
cmp    %rsi,%rbp
jl     11a0 <main+0x50>
test   %esi,%esi
jle    1281 <main+0x131>
lea    0x1154(%rsp),%rbx
xor    %ebp,%ebp
xor    %r14d,%r14d
jmp    11f2 <main+0xa2>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbp
movslq 0xc(%rsp),%rsi
add    $0x28,%rbx
cmp    %rsi,%rbp
jge    120d <main+0xbd>
mov    %rbx,%rdi
call   1030 <modify@plt>
test   %rax,%rax
je     11e0 <main+0x90>
add    $0x1,%r14d
movl   $0x1,0x10(%rsp,%rbp,4)
jmp    11e0 <main+0x90>
test   %r14d,%r14d
je     126e <main+0x11e>
lea    0xe22(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
jle    128f <main+0x13f>
lea    0x1140(%rsp),%rbx
lea    0xe05(%rip),%r14
xor    %ebp,%ebp
jmp    1250 <main+0x100>
xchg   %ax,%ax
add    $0x1,%rbp
movslq %eax,%rcx
add    $0x28,%rbx
cmp    %rcx,%rbp
jge    128f <main+0x13f>
cmpl   $0x0,0x10(%rsp,%rbp,4)
je     1240 <main+0xf0>
lea    0x14(%rbx),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%eax
jmp    1240 <main+0xf0>
cmp    $0x1,%esi
jne    1281 <main+0x131>
lea    0xdcc(%rip),%rdi
call   1040 <puts@plt>
jmp    128f <main+0x13f>
lea    0xd81(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0xbd20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%s %s\00"
@.str.2 = [47 x i8] c"There is 1 account and no account is modified\0A\00"
@.str.3 = [50 x i8] c"There are %d accounts and no account is modified\0A\00"
@.str.4 = [4 x i8] c"%d\0A\00"
@.str.5 = [7 x i8] c"%s %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [1100 x [2 x [20 x i8]]]
%3 = alloca [1100 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = bitcast [1100 x i32]* %3 to i8*
store i32 0, i32* %5
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
store i32 0, i32* %6
br label %11
11: ; preds = %27, %0
%12 = load i32, i32* %6
%13 = load i32, i32* %4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %30
15: ; preds = %11
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %2, i64 0, i64 %17
%19 = getelementptr inbounds [2 x [20 x i8]], [2 x [20 x i8]]* %18, i64 0, i64 0
%20 = getelementptr inbounds [20 x i8], [20 x i8]* %19, i64 0, i64 0
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %2, i64 0, i64 %22
%24 = getelementptr inbounds [2 x [20 x i8]], [2 x [20 x i8]]* %23, i64 0, i64 1
%25 = getelementptr inbounds [20 x i8], [20 x i8]* %24, i64 0, i64 0
%26 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* %25)
br label %27
27: ; preds = %15
%28 = load i32, i32* %6
%29 = add nsw i32 %28, 1
store i32 %29, i32* %6
br label %11
30: ; preds = %11
store i32 0, i32* %7
br label %31
31: ; preds = %50, %30
%32 = load i32, i32* %7
%33 = load i32, i32* %4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %53
35: ; preds = %31
%36 = load i32, i32* %7
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %2, i64 0, i64 %37
%39 = getelementptr inbounds [2 x [20 x i8]], [2 x [20 x i8]]* %38, i64 0, i64 1
%40 = getelementptr inbounds [20 x i8], [20 x i8]* %39, i64 0, i64 0
%41 = call i64 @modify(i8* %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %35
%44 = load i32, i32* %5
%45 = add nsw i32 %44, 1
store i32 %45, i32* %5
%46 = load i32, i32* %7
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [1100 x i32], [1100 x i32]* %3, i64 0, i64 %47
store i32 1, i32* %48
br label %49
49: ; preds = %43, %35
br label %50
50: ; preds = %49
%51 = load i32, i32* %7
%52 = add nsw i32 %51, 1
store i32 %52, i32* %7
br label %31
53: ; preds = %31
%54 = load i32, i32* %5
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %65
56: ; preds = %53
%57 = load i32, i32* %4
%58 = icmp eq i32 %57, 1
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
br label %64
61: ; preds = %56
%62 = load i32, i32* %4
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i32 %62)
br label %64
64: ; preds = %61, %59
br label %95
65: ; preds = %53
%66 = load i32, i32* %5
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %66)
store i32 0, i32* %8
br label %68
68: ; preds = %91, %65
%69 = load i32, i32* %8
%70 = load i32, i32* %4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %94
72: ; preds = %68
%73 = load i32, i32* %8
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [1100 x i32], [1100 x i32]* %3, i64 0, i64 %74
%76 = load i32, i32* %75
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %90
78: ; preds = %72
%79 = load i32, i32* %8
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %2, i64 0, i64 %80
%82 = getelementptr inbounds [2 x [20 x i8]], [2 x [20 x i8]]* %81, i64 0, i64 0
%83 = getelementptr inbounds [20 x i8], [20 x i8]* %82, i64 0, i64 0
%84 = load i32, i32* %8
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %2, i64 0, i64 %85
%87 = getelementptr inbounds [2 x [20 x i8]], [2 x [20 x i8]]* %86, i64 0, i64 1
%88 = getelementptr inbounds [20 x i8], [20 x i8]* %87, i64 0, i64 0
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %83, i8* %88)
br label %90
90: ; preds = %78, %72
br label %91
91: ; preds = %90
%92 = load i32, i32* %8
%93 = add nsw i32 %92, 1
store i32 %93, i32* %8
br label %68
94: ; preds = %68
br label %95
95: ; preds = %94, %64
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%s %s\00"
@.str.3 = [50 x i8] c"There are %d accounts and no account is modified\0A\00"
@.str.4 = [4 x i8] c"%d\0A\00"
@.str.5 = [7 x i8] c"%s %s\0A\00"
@str = [46 x i8] c"There is 1 account and no account is modified\00"
define i32 @main() {
%1 = alloca [1100 x [2 x [20 x i8]]]
%2 = alloca [1100 x i32]
%3 = alloca i32
%4 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %1, i64 0, i64 0, i64 0, i64 0
%5 = bitcast [1100 x i32]* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%8 = load i32, i32* %3
%9 = icmp sgt i32 %8, 0
br i1 %9, label %12, label %42
10: ; preds = %12
%11 = icmp sgt i32 %18, 0
br i1 %11, label %23, label %42
12: ; preds = %0, %12
%13 = phi i64 [ %17, %12 ], [ 0, %0 ]
%14 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %1, i64 0, i64 %13, i64 0, i64 0
%15 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %1, i64 0, i64 %13, i64 1, i64 0
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %14, i8* %15)
%17 = add nuw nsw i64 %13, 1
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = icmp slt i64 %17, %19
br i1 %20, label %12, label %10
21: ; preds = %32
%22 = icmp eq i32 %33, 0
br i1 %22, label %38, label %45
23: ; preds = %10, %32
%24 = phi i64 [ %34, %32 ], [ 0, %10 ]
%25 = phi i32 [ %33, %32 ], [ 0, %10 ]
%26 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %1, i64 0, i64 %24, i64 1, i64 0
%27 = call i64 @modify(i8* %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %23
%30 = add nsw i32 %25, 1
%31 = getelementptr inbounds [1100 x i32], [1100 x i32]* %2, i64 0, i64 %24
store i32 1, i32* %31
br label %32
32: ; preds = %23, %29
%33 = phi i32 [ %30, %29 ], [ %25, %23 ]
%34 = add nuw nsw i64 %24, 1
%35 = load i32, i32* %3
%36 = sext i32 %35 to i64
%37 = icmp slt i64 %34, %36
br i1 %37, label %23, label %21
38: ; preds = %21
%39 = icmp eq i32 %35, 1
br i1 %39, label %40, label %42
40: ; preds = %38
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
br label %65
42: ; preds = %10, %0, %38
%43 = phi i32 [ %35, %38 ], [ %18, %10 ], [ %8, %0 ]
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i32 %43)
br label %65
45: ; preds = %21
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%47 = load i32, i32* %3
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %65
49: ; preds = %45, %60
%50 = phi i32 [ %61, %60 ], [ %47, %45 ]
%51 = phi i64 [ %62, %60 ], [ 0, %45 ]
%52 = getelementptr inbounds [1100 x i32], [1100 x i32]* %2, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = icmp eq i32 %53, 0
br i1 %54, label %60, label %55
55: ; preds = %49
%56 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %1, i64 0, i64 %51, i64 0, i64 0
%57 = getelementptr inbounds [1100 x [2 x [20 x i8]]], [1100 x [2 x [20 x i8]]]* %1, i64 0, i64 %51, i64 1, i64 0
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %56, i8* %57)
%59 = load i32, i32* %3
br label %60
60: ; preds = %49, %55
%61 = phi i32 [ %50, %49 ], [ %59, %55 ]
%62 = add nuw nsw i64 %51, 1
%63 = sext i32 %61 to i64
%64 = icmp slt i64 %62, %63
br i1 %64, label %49, label %65
65: ; preds = %60, %45, %40, %42
ret i32 0
}