#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*/ puts(char *);
int /*<<< orphan*/ scanf(char *, char *);
scalar_t__ strcasecmp(char *, char *);
int main() {
  char s[101];
  char s1[101];
  scanf("%100s", s);
  scanf("%100s", s1);
  if (strcasecmp(s, s1) > 0)
    puts("1");
  else if (strcasecmp(s, s1) < 0)
    puts("-1");
  else
    puts("0");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rsi
lea    0xeb3(%rip),%rdi
call   1050 <scanf@plt>
lea    -0xe0(%rbp),%rsi
lea    0xea0(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x70(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jle    1190 <main+0x60>
lea    0xe81(%rip),%rdi
call   1040 <puts@plt>
jmp    11cc <main+0x9c>
lea    -0x70(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jge    11bb <main+0x8b>
lea    0xe55(%rip),%rdi
call   1040 <puts@plt>
jmp    11c7 <main+0x97>
lea    0xe47(%rip),%rdi
call   1040 <puts@plt>
jmp    11cc <main+0x9c>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xe0,%rsp
lea    0xebd(%rip),%r15
lea    0x70(%rsp),%r14
mov    %r15,%rdi
mov    %r14,%rsi
call   1050 <scanf@plt>
mov    %rsp,%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
lea    0xe90(%rip),%rax
lea    0xe8c(%rip),%rcx
cmovs  %rax,%rcx
lea    0xe7f(%rip),%rdi
cmovle %rcx,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%100s\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [3 x i8] c"-1\00"
@.str.3 = [2 x i8] c"0\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [101 x i8]
%3 = alloca [101 x i8]
store i32 0, i32* %1
%4 = getelementptr inbounds [101 x i8], [101 x i8]* %2, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = getelementptr inbounds [101 x i8], [101 x i8]* %3, i64 0, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = getelementptr inbounds [101 x i8], [101 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [101 x i8], [101 x i8]* %3, i64 0, i64 0
%10 = call i64 @strcasecmp(i8* %8, i8* %9)
%11 = icmp sgt i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %24
14: ; preds = %0
%15 = getelementptr inbounds [101 x i8], [101 x i8]* %2, i64 0, i64 0
%16 = getelementptr inbounds [101 x i8], [101 x i8]* %3, i64 0, i64 0
%17 = call i64 @strcasecmp(i8* %15, i8* %16)
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %23
21: ; preds = %14
%22 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %23
23: ; preds = %21, %19
br label %24
24: ; preds = %23, %12
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%100s\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [3 x i8] c"-1\00"
@.str.3 = [2 x i8] c"0\00"
define i32 @main() {
%1 = alloca [101 x i8]
%2 = alloca [101 x i8]
%3 = getelementptr inbounds [101 x i8], [101 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [101 x i8], [101 x i8]* %2, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %3)
%6 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %4)
%7 = call i64 @strcasecmp(i8* %3, i8* %4)
%8 = icmp sgt i64 %7, 0
%9 = icmp slt i64 %7, 0
%10 = select i1 %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0)
%11 = select i1 %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* %10
%12 = call i32 @puts(i8* dereferenceable(1) %11)
ret i32 0
}