#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 /*<<< orphan*/ scanf(char *, ...);
int strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main() {
  int n, delta, result;
  char name1[12], name2[12];
  scanf("%d", &n);
  scanf("%s %s", name1, name2);
  delta = strcmp(name1, name2) & 0x80000000;
  for (int i = 2; i < n; i++) {
    strcpy(name1, name2);
    scanf("%s", name2);
    if ((strcmp(name1, name2) & 0x80000000) != delta) {
      printf("NEITHER");
      return 0;
    }
  }
  printf(delta == 0 ? "DECREASING" : "INCREASING");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    -0x1c(%rbp),%rsi
lea    -0x28(%rbp),%rdx
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    -0x1c(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1050 <strcmp@plt>
and    $0x80000000,%eax
mov    %eax,-0xc(%rbp)
movl   $0x2,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1204 <main+0xc4>
lea    -0x1c(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x28(%rbp),%rsi
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    -0x1c(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1050 <strcmp@plt>
and    $0x80000000,%eax
cmp    -0xc(%rbp),%eax
je     11f1 <main+0xb1>
lea    0xe29(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1228 <main+0xe8>
jmp    11f6 <main+0xb6>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1193 <main+0x53>
mov    -0xc(%rbp),%ecx
lea    0xe0e(%rip),%rdi
lea    0xdfc(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xeab(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe9b(%rip),%rdi
lea    0x1c(%rsp),%rbx
lea    0x10(%rsp),%rbp
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <strcmp@plt>
mov    %eax,%r13d
and    $0x80000000,%r13d
cmpl   $0x3,0xc(%rsp)
jl     11f6 <main+0xb6>
mov    $0x2,%ebp
lea    0x1c(%rsp),%r15
lea    0x10(%rsp),%rbx
lea    0xe55(%rip),%r12
lea    0xe51(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <strcmp@plt>
and    $0x80000000,%eax
cmp    %r13d,%eax
jne    120b <main+0xcb>
add    $0x1,%ebp
cmp    0xc(%rsp),%ebp
jl     11c0 <main+0x80>
test   %r13d,%r13d
lea    0xe11(%rip),%rax
lea    0xe15(%rip),%r14
cmove  %rax,%r14
mov    %r14,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%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"%s %s\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [8 x i8] c"NEITHER\00"
@.str.4 = [11 x i8] c"DECREASING\00"
@.str.5 = [11 x i8] c"INCREASING\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [12 x i8]
%6 = alloca [12 x i8]
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%9 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %9, i8* %10)
%12 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%13 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%14 = call i32 @strcmp(i8* %12, i8* %13)
%15 = and i32 %14, -2147483648
store i32 %15, i32* %3
store i32 2, i32* %7
br label %16
16: ; preds = %35, %0
%17 = load i32, i32* %7
%18 = load i32, i32* %2
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %38
20: ; preds = %16
%21 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%22 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%23 = call i32 @strcpy(i8* %21, i8* %22)
%24 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%27 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%28 = call i32 @strcmp(i8* %26, i8* %27)
%29 = and i32 %28, -2147483648
%30 = load i32, i32* %3
%31 = icmp ne i32 %29, %30
br i1 %31, label %32, label %34
32: ; preds = %20
%33 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %44
34: ; preds = %20
br label %35
35: ; preds = %34
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
store i32 %37, i32* %7
br label %16
38: ; preds = %16
%39 = load i32, i32* %3
%40 = icmp eq i32 %39, 0
%41 = zext i1 %40 to i64
%42 = select i1 %40, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0)
%43 = call i32 @printf(i8* %42)
store i32 0, i32* %1
br label %44
44: ; preds = %38, %32
%45 = load i32, i32* %1
ret i32 %45
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"%s %s\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [8 x i8] c"NEITHER\00"
@.str.4 = [11 x i8] c"DECREASING\00"
@.str.5 = [11 x i8] c"INCREASING\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [12 x i8]
%3 = alloca [12 x i8]
%4 = bitcast i32* %1 to i8*
%5 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %5, i8* %6)
%9 = call i32 @strcmp(i8* %5, i8* %6)
%10 = and i32 %9, -2147483648
%11 = load i32, i32* %1
%12 = icmp sgt i32 %11, 2
br i1 %12, label %16, label %24
13: ; preds = %16
%14 = load i32, i32* %1
%15 = icmp slt i32 %23, %14
br i1 %15, label %16, label %24
16: ; preds = %0, %13
%17 = phi i32 [ %23, %13 ], [ 2, %0 ]
%18 = call i32 @strcpy(i8* %5, i8* %6)
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%20 = call i32 @strcmp(i8* %5, i8* %6)
%21 = and i32 %20, -2147483648
%22 = icmp eq i32 %21, %10
%23 = add nuw nsw i32 %17, 1
br i1 %22, label %13, label %27
24: ; preds = %13, %0
%25 = icmp eq i32 %10, 0
%26 = select i1 %25, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0)
br label %27
27: ; preds = %16, %24
%28 = phi i8* [ %26, %24 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %16 ]
%29 = call i32 @printf(i8* dereferenceable(1) %28)
ret i32 0
}