#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__ EOF;
int /*<<< orphan*/ cycle(int, int *);
int /*<<< orphan*/ printf(char *, int, int, int);
scalar_t__ scanf(char *, int *, int *);
int main() {
  int n = 0;
  int i = 0, j = 0;
  int k = 0;
  int counter = 0;
  int max = 0;
  while (scanf("%d %d", &i, &j) != EOF) {
    int tem = 0;
    int isOppsite = 0;
    max = 0;
    if (i > j) {
      tem = i;
      i = j;
      j = tem;
      isOppsite = 1;
    }
    for (k = i; k <= j; k++) {
      counter = 0;
      cycle(k, &counter);
      if (max == 0) {
        max = counter;
      } else if (counter > max) {
        max = counter;
      }
    }
    if (isOppsite != 1) {
      printf("%d %d %d\n", i, j, max);
    } else {
      printf("%d %d %d\n", j, i, max);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    0xe90(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   1040 <scanf@plt>
mov    0x2e64(%rip),%rcx
cmp    (%rcx),%rax
je     1269 <main+0x139>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11c7 <main+0x97>
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x10(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     122b <main+0xfb>
movl   $0x0,-0x18(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x18(%rbp),%rsi
call   1050 <cycle@plt>
cmpl   $0x0,-0x1c(%rbp)
jne    1201 <main+0xd1>
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1218 <main+0xe8>
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jle    1213 <main+0xe3>
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1218 <main+0xe8>
jmp    121d <main+0xed>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11cd <main+0x9d>
cmpl   $0x1,-0x24(%rbp)
je     124f <main+0x11f>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xdc1(%rip),%rdi
call   1030 <printf@plt>
jmp    1264 <main+0x134>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xda7(%rip),%rdi
call   1030 <printf@plt>
jmp    1169 <main+0x39>
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    $0x18,%rsp
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x14(%rsp)
lea    0xea3(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1040 <scanf@plt>
mov    0x2e75(%rip),%rcx
cmp    (%rcx),%rax
jne    1189 <main+0x59>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x14(%rsp),%rbx
jmp    11bd <main+0x8d>
mov    %edx,%esi
mov    %eax,%edx
mov    %ebp,%ecx
call   1030 <printf@plt>
lea    0xe5e(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1040 <scanf@plt>
mov    0x2e30(%rip),%rcx
cmp    (%rcx),%rax
je     1178 <main+0x48>
mov    0x10(%rsp),%r12d
mov    0xc(%rsp),%r13d
mov    %r13d,%edx
mov    %r12d,%r14d
cmp    %r13d,%r12d
jle    11e2 <main+0xb2>
mov    %r13d,0x10(%rsp)
mov    %r12d,0xc(%rsp)
mov    %r12d,%edx
mov    %r13d,%r14d
xor    %ebp,%ebp
cmp    %edx,%r14d
jg     1226 <main+0xf6>
xor    %r15d,%r15d
mov    %r15d,%ebp
nop
movl   $0x0,0x14(%rsp)
mov    %r14d,%edi
mov    %rbx,%rsi
call   1050 <cycle@plt>
mov    0x14(%rsp),%eax
cmp    %r15d,%eax
cmovg  %eax,%ebp
test   %r15d,%r15d
cmove  %eax,%ebp
lea    0x1(%r14),%eax
mov    0xc(%rsp),%edx
mov    %ebp,%r15d
cmp    %edx,%r14d
mov    %eax,%r14d
jl     11f0 <main+0xc0>
mov    0x10(%rsp),%eax
lea    0xdd5(%rip),%rdi
cmp    %r13d,%r12d
jg     1190 <main+0x60>
mov    %eax,%esi
jmp    1194 <main+0x64>

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@EOF = global i64 0
@.str.1 = [10 x i8] c"%d %d %d\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
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
br label %10
10: ; preds = %59, %0
%11 = call i64 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4)
%12 = load i64, i64* @EOF
%13 = icmp ne i64 %11, %12
br i1 %13, label %14, label %60
14: ; preds = %10
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %7
%15 = load i32, i32* %3
%16 = load i32, i32* %4
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load i32, i32* %3
store i32 %19, i32* %8
%20 = load i32, i32* %4
store i32 %20, i32* %3
%21 = load i32, i32* %8
store i32 %21, i32* %4
store i32 1, i32* %9
br label %22
22: ; preds = %18, %14
%23 = load i32, i32* %3
store i32 %23, i32* %5
br label %24
24: ; preds = %43, %22
%25 = load i32, i32* %5
%26 = load i32, i32* %4
%27 = icmp sle i32 %25, %26
br i1 %27, label %28, label %46
28: ; preds = %24
store i32 0, i32* %6
%29 = load i32, i32* %5
%30 = call i32 @cycle(i32 %29, i32* %6)
%31 = load i32, i32* %7
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %28
%34 = load i32, i32* %6
store i32 %34, i32* %7
br label %42
35: ; preds = %28
%36 = load i32, i32* %6
%37 = load i32, i32* %7
%38 = icmp sgt i32 %36, %37
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = load i32, i32* %6
store i32 %40, i32* %7
br label %41
41: ; preds = %39, %35
br label %42
42: ; preds = %41, %33
br label %43
43: ; preds = %42
%44 = load i32, i32* %5
%45 = add nsw i32 %44, 1
store i32 %45, i32* %5
br label %24
46: ; preds = %24
%47 = load i32, i32* %9
%48 = icmp ne i32 %47, 1
br i1 %48, label %49, label %54
49: ; preds = %46
%50 = load i32, i32* %3
%51 = load i32, i32* %4
%52 = load i32, i32* %7
%53 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %50, i32 %51, i32 %52)
br label %59
54: ; preds = %46
%55 = load i32, i32* %4
%56 = load i32, i32* %3
%57 = load i32, i32* %7
%58 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %55, i32 %56, i32 %57)
br label %59
59: ; preds = %54, %49
br label %10
60: ; preds = %10
%61 = load i32, i32* %1
ret i32 %61
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@EOF = global i64 0
@.str.1 = [10 x i8] c"%d %d %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%5 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%6 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%7 = call i64 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%8 = load i64, i64* @EOF
%9 = icmp eq i64 %7, %8
br i1 %9, label %43, label %10
10: ; preds = %0, %39
%11 = load i32, i32* %1
%12 = load i32, i32* %2
%13 = icmp sgt i32 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 %12, i32* %1
store i32 %11, i32* %2
br label %15
15: ; preds = %14, %10
%16 = phi i32 [ %11, %14 ], [ %12, %10 ]
%17 = phi i32 [ %12, %14 ], [ %11, %10 ]
%18 = icmp sgt i32 %17, %16
br i1 %18, label %31, label %19
19: ; preds = %15, %19
%20 = phi i32 [ %27, %19 ], [ 0, %15 ]
%21 = phi i32 [ %28, %19 ], [ %17, %15 ]
store i32 0, i32* %3
%22 = call i32 @cycle(i32 %21, i32* %3)
%23 = icmp eq i32 %20, 0
%24 = load i32, i32* %3
%25 = icmp sgt i32 %24, %20
%26 = select i1 %23, i1 true, i1 %25
%27 = select i1 %26, i32 %24, i32 %20
%28 = add nsw i32 %21, 1
%29 = load i32, i32* %2
%30 = icmp slt i32 %21, %29
br i1 %30, label %19, label %31
31: ; preds = %19, %15
%32 = phi i32 [ 0, %15 ], [ %27, %19 ]
%33 = phi i32 [ %16, %15 ], [ %29, %19 ]
%34 = load i32, i32* %1
br i1 %13, label %37, label %35
35: ; preds = %31
%36 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %34, i32 %33, i32 %32)
br label %39
37: ; preds = %31
%38 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %33, i32 %34, i32 %32)
br label %39
39: ; preds = %37, %35
%40 = call i64 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%41 = load i64, i64* @EOF
%42 = icmp eq i64 %40, %41
br i1 %42, label %43, label %10
43: ; preds = %39, %0
ret i32 0
}