#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 *, double);
int /*<<< orphan*/ scanf(char *, double *, double *, double *);
int main() {
  double h, m, v, s;
  scanf("%lf %lf %lf", &v, &h, &m);
  s = v * (h + m / 60);
  if (s < 0) {
    printf("%.1f\nreverse", s * -1);
  } else {
    printf("%.1f", s);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x20(%rbp),%rsi
lea    -0x10(%rbp),%rdx
lea    -0x18(%rbp),%rcx
call   1040 <scanf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  0xea2(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    119b <main+0x7b>
movsd  0xe83(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
jmp    11ac <main+0x8c>
movsd  -0x28(%rbp),%xmm0
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xef5(%rip),%rdi
mov    %rsp,%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   1040 <scanf@plt>
movsd  0x8(%rsp),%xmm0
divsd  0xeb5(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
mulsd  (%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jbe    1171 <main+0x51>
xorpd  0xea8(%rip),%xmm0
lea    0xebd(%rip),%rdi
jmp    1178 <main+0x58>
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [13 x i8] c"%.1f\0Areverse\00"
@.str.2 = [5 x i8] c"%.1f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %4, double* %2, double* %3)
%7 = load double, double* %4
%8 = load double, double* %2
%9 = load double, double* %3
%10 = fdiv double %9, 6.000000e+01
%11 = fadd double %8, %10
%12 = fmul double %7, %11
store double %12, double* %5
%13 = load double, double* %5
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %15, label %19
15: ; preds = %0
%16 = load double, double* %5
%17 = fmul double %16, -1.000000e+00
%18 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), double %17)
br label %22
19: ; preds = %0
%20 = load double, double* %5
%21 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %20)
br label %22
22: ; preds = %19, %15
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [13 x i8] c"%.1f\0Areverse\00"
@.str.2 = [5 x i8] c"%.1f\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = bitcast double* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %3, double* %1, double* %2)
%8 = load double, double* %3
%9 = load double, double* %1
%10 = load double, double* %2
%11 = fdiv double %10, 6.000000e+01
%12 = fadd double %9, %11
%13 = fmul double %8, %12
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = fneg double %13
%17 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), double %16)
br label %20
18: ; preds = %0
%19 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %13)
br label %20
20: ; preds = %18, %15
ret i32 0
}