#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 getline(char **, size_t *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stdin;
int main(void) {
  char *in;
  size_t len;
  while (getline(&in, &len, stdin) != -1) {
    for (len = 0; in[len] != '\n' && in[len] != '\0'; len++)
      ;
    printf("%s\n", (len <= 80 ? "YES" : "NO"));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%edx
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <getline@plt>
cmp    $0xffffffff,%eax
je     11d6 <main+0xb6>
movq   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x19(%rbp)
je     1185 <main+0x65>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    1195 <main+0x75>
jmp    11ab <main+0x8b>
jmp    119a <main+0x7a>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1156 <main+0x36>
mov    -0x18(%rbp),%rcx
lea    0xe52(%rip),%rsi
lea    0xe47(%rip),%rax
cmp    $0x50,%rcx
cmovbe %rax,%rsi
lea    0xe34(%rip),%rdi
call   1030 <printf@plt>
jmp    112f <main+0xf>
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
sub    $0x18,%rsp
mov    0x2eb3(%rip),%r12
mov    (%r12),%edx
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1040 <getline@plt>
cmp    $0xffffffff,%eax
je     11b8 <main+0x98>
lea    0xeb0(%rip),%r13
lea    0xead(%rip),%rbp
lea    0xe9e(%rip),%r14
lea    0x10(%rsp),%r15
lea    0x8(%rsp),%rbx
jmp    1197 <main+0x77>
xchg   %ax,%ax
cmp    $0x51,%rcx
mov    %rbp,%rsi
cmovb  %r13,%rsi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    (%r12),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <getline@plt>
cmp    $0xffffffff,%eax
je     11b8 <main+0x98>
mov    0x10(%rsp),%rax
xor    %ecx,%ecx
xchg   %ax,%ax
mov    %rcx,0x8(%rsp)
movzbl (%rax,%rcx,1),%edx
test   %dl,%dl
je     1170 <main+0x50>
cmp    $0xa,%dl
je     1170 <main+0x50>
add    $0x1,%rcx
jmp    11a0 <main+0x80>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [4 x i8] c"YES\00"
@.str.2 = [3 x i8] c"NO\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i64
store i32 0, i32* %1
br label %4
4: ; preds = %29, %0
%5 = load i32, i32* @stdin
%6 = call i32 @getline(i8** %2, i64* %3, i32 %5)
%7 = icmp ne i32 %6, -1
br i1 %7, label %8, label %35
8: ; preds = %4
store i64 0, i64* %3
br label %9
9: ; preds = %26, %8
%10 = load i8*, i8** %2
%11 = load i64, i64* %3
%12 = getelementptr inbounds i8, i8* %10, i64 %11
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 10
br i1 %15, label %16, label %23
16: ; preds = %9
%17 = load i8*, i8** %2
%18 = load i64, i64* %3
%19 = getelementptr inbounds i8, i8* %17, i64 %18
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br label %23
23: ; preds = %16, %9
%24 = phi i1 [ false, %9 ], [ %22, %16 ]
br i1 %24, label %25, label %29
25: ; preds = %23
br label %26
26: ; preds = %25
%27 = load i64, i64* %3
%28 = add i64 %27, 1
store i64 %28, i64* %3
br label %9
29: ; preds = %23
%30 = load i64, i64* %3
%31 = icmp ule i64 %30, 80
%32 = zext i1 %31 to i64
%33 = select i1 %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%34 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %33)
br label %4
35: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [4 x i8] c"YES\00"
@.str.2 = [3 x i8] c"NO\00"
define i32 @main() {
%1 = alloca i8*
%2 = alloca i64
%3 = bitcast i8** %1 to i8*
%4 = bitcast i64* %2 to i8*
%5 = load i32, i32* @stdin
%6 = call i32 @getline(i8** %1, i64* %2, i32 %5)
%7 = icmp eq i32 %6, -1
br i1 %7, label %23, label %8
8: ; preds = %0, %16
%9 = load i8*, i8** %1
br label %10
10: ; preds = %8, %14
%11 = phi i64 [ %15, %14 ], [ 0, %8 ]
store i64 %11, i64* %2
%12 = getelementptr inbounds i8, i8* %9, i64 %11
%13 = load i8, i8* %12
switch i8 %13, label %14 [
i8 10, label %16
i8 0, label %16
]
14: ; preds = %10
%15 = add i64 %11, 1
br label %10
16: ; preds = %10, %10
%17 = icmp ult i64 %11, 81
%18 = select i1 %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = load i32, i32* @stdin
%21 = call i32 @getline(i8** %1, i64* %2, i32 %20)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %8
23: ; preds = %16, %0
ret i32 0
}