#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);
scalar_t__ scanf(char *, int *);
int main(void) {
  int i = 0;
  while (scanf("%d", &i)) {
    if (i == 1 || i == 2 || i == 3) {
      printf("%d\n", 1);
      continue;
    }
    if (((float)i * 5 / 33 - i * 5 / 33) >= 0.45)
      printf("%d\n", i * 5 / 33 + 1);
    else
      printf("%d\n", i * 5 / 33);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xed3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmp    $0x0,%rax
je     120c <main+0xec>
cmpl   $0x1,-0x8(%rbp)
je     116e <main+0x4e>
cmpl   $0x2,-0x8(%rbp)
je     116e <main+0x4e>
cmpl   $0x3,-0x8(%rbp)
jne    1184 <main+0x64>
lea    0xe9e(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
jmp    1136 <main+0x16>
cvtsi2ssl -0x8(%rbp),%xmm0
movss  0xe7b(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xe6b(%rip),%xmm1
divss  %xmm1,%xmm0
imul   $0x5,-0x8(%rbp),%eax
mov    $0x21,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe3f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11ed <main+0xcd>
imul   $0x5,-0x8(%rbp),%eax
mov    $0x21,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
add    $0x1,%esi
lea    0xe30(%rip),%rdi
call   1030 <printf@plt>
jmp    1207 <main+0xe7>
imul   $0x5,-0x8(%rbp),%eax
mov    $0x21,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    0xe11(%rip),%rdi
call   1030 <printf@plt>
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movl   $0x0,0xc(%rsp)
lea    0xed8(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
test   %rax,%rax
je     11d7 <main+0xb7>
lea    0xec1(%rip),%r14
lea    0xeb7(%rip),%r15
lea    0xc(%rsp),%rbx
jmp    1178 <main+0x58>
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
test   %rax,%rax
je     11d7 <main+0xb7>
mov    0xc(%rsp),%eax
lea    -0x1(%rax),%ecx
mov    $0x1,%esi
cmp    $0x2,%ecx
jbe    1160 <main+0x40>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
mulss  0xe68(%rip),%xmm0
divss  0xe64(%rip),%xmm0
lea    (%rax,%rax,4),%eax
cltq
imul   $0x3e0f83e1,%rax,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x23,%rsi
add    %eax,%esi
xorps  %xmm1,%xmm1
cvtsi2ss %esi,%xmm1
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
ucomisd 0xe38(%rip),%xmm0
jb     1160 <main+0x40>
add    $0x1,%esi
jmp    1160 <main+0x40>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %40, %15, %0
%4 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %41
6: ; preds = %3
%7 = load i32, i32* %2
%8 = icmp eq i32 %7, 1
br i1 %8, label %15, label %9
9: ; preds = %6
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, 2
br i1 %11, label %15, label %12
12: ; preds = %9
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 3
br i1 %14, label %15, label %17
15: ; preds = %12, %9, %6
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %3
17: ; preds = %12
%18 = load i32, i32* %2
%19 = sitofp i32 %18 to float
%20 = fmul float %19, 5.000000e+00
%21 = fdiv float %20, 3.300000e+01
%22 = load i32, i32* %2
%23 = mul nsw i32 %22, 5
%24 = sdiv i32 %23, 33
%25 = sitofp i32 %24 to float
%26 = fsub float %21, %25
%27 = fpext float %26 to double
%28 = fcmp oge double %27, 4.500000e-01
br i1 %28, label %29, label %35
29: ; preds = %17
%30 = load i32, i32* %2
%31 = mul nsw i32 %30, 5
%32 = sdiv i32 %31, 33
%33 = add nsw i32 %32, 1
%34 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %33)
br label %40
35: ; preds = %17
%36 = load i32, i32* %2
%37 = mul nsw i32 %36, 5
%38 = sdiv i32 %37, 33
%39 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %35, %29
br label %3
41: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %26, label %5
5: ; preds = %0, %9
%6 = load i32, i32* %1
%7 = add i32 %6, -1
%8 = icmp ult i32 %7, 3
br i1 %8, label %9, label %14
9: ; preds = %5, %14, %24
%10 = phi i32 [ %25, %24 ], [ %19, %14 ], [ 1, %5 ]
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%13 = icmp eq i64 %12, 0
br i1 %13, label %26, label %5
14: ; preds = %5
%15 = sitofp i32 %6 to float
%16 = fmul float %15, 5.000000e+00
%17 = fdiv float %16, 3.300000e+01
%18 = mul nsw i32 %6, 5
%19 = sdiv i32 %18, 33
%20 = sitofp i32 %19 to float
%21 = fsub float %17, %20
%22 = fpext float %21 to double
%23 = fcmp ult double %22, 4.500000e-01
br i1 %23, label %9, label %24
24: ; preds = %14
%25 = add nsw i32 %19, 1
br label %9
26: ; preds = %9, %0
ret i32 0
}