#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;
double atof(char *);
int /*<<< orphan*/ printf(char *, double);
scalar_t__ scanf(char *, char *, char *);
int main() {
  char orix[100] = {'\0'};
  char oriy[100] = {'\0'};
  char adjx[100] = {'\0'};
  char adjy[100] = {'\0'};
  int i, j;
  double numx, numy, output;
  while (scanf("%s %s", orix, oriy) != EOF) {
    for (i = 0, j = 0; orix[i] != '\0'; i++, j++) {
      if (orix[i] != ',')
        adjx[j] = orix[i];
      else
        j--;
    }
    adjx[j] = '\0';
    for (i = 0, j = 0; oriy[i] != '\0'; i++, j++) {
      if (oriy[i] != ',')
        adjy[j] = oriy[i];
      else
        j--;
    }
    adjy[j] = '\0';
    numx = atof(adjx);
    numy = atof(adjy);
    output = numx - numy;
    printf("%f\n", output);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1050 <memset@plt>
lea    -0xe0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1050 <memset@plt>
lea    -0x150(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1050 <memset@plt>
lea    -0x1c0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1050 <memset@plt>
lea    -0x70(%rbp),%rsi
lea    -0xe0(%rbp),%rdx
lea    0xe53(%rip),%rdi
call   1060 <scanf@plt>
mov    0x2e2f(%rip),%rcx
cmp    (%rcx),%rax
je     1368 <main+0x228>
movl   $0x0,-0x1c4(%rbp)
movl   $0x0,-0x1c8(%rbp)
movslq -0x1c4(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     1255 <main+0x115>
movslq -0x1c4(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x2c,%eax
je     121e <main+0xde>
movslq -0x1c4(%rbp),%rax
mov    -0x70(%rbp,%rax,1),%cl
movslq -0x1c8(%rbp),%rax
mov    %cl,-0x150(%rbp,%rax,1)
jmp    122d <main+0xed>
mov    -0x1c8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c8(%rbp)
jmp    1232 <main+0xf2>
mov    -0x1c4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c4(%rbp)
mov    -0x1c8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c8(%rbp)
jmp    11d6 <main+0x96>
movslq -0x1c8(%rbp),%rax
movb   $0x0,-0x150(%rbp,%rax,1)
movl   $0x0,-0x1c4(%rbp)
movl   $0x0,-0x1c8(%rbp)
movslq -0x1c4(%rbp),%rax
movsbl -0xe0(%rbp,%rax,1),%eax
ff
cmp    $0x0,%eax
je     1300 <main+0x1c0>
movslq -0x1c4(%rbp),%rax
movsbl -0xe0(%rbp,%rax,1),%eax
ff
cmp    $0x2c,%eax
je     12c9 <main+0x189>
movslq -0x1c4(%rbp),%rax
mov    -0xe0(%rbp,%rax,1),%cl
movslq -0x1c8(%rbp),%rax
mov    %cl,-0x1c0(%rbp,%rax,1)
jmp    12d8 <main+0x198>
mov    -0x1c8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c8(%rbp)
jmp    12dd <main+0x19d>
mov    -0x1c4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c4(%rbp)
mov    -0x1c8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c8(%rbp)
jmp    1278 <main+0x138>
movslq -0x1c8(%rbp),%rax
movb   $0x0,-0x1c0(%rbp,%rax,1)
lea    -0x150(%rbp),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x1d0(%rbp)
ff
lea    -0x1c0(%rbp),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x1d8(%rbp)
ff
movsd  -0x1d0(%rbp),%xmm0
ff
subsd  -0x1d8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1e0(%rbp)
ff
movsd  -0x1e0(%rbp),%xmm0
ff
lea    0xca8(%rip),%rdi
call   1040 <printf@plt>
jmp    119b <main+0x5b>
xor    %eax,%eax
add    $0x1e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1c8,%rsp
xorpd  %xmm0,%xmm0
movapd %xmm0,0x140(%rsp)
movapd %xmm0,0x130(%rsp)
movapd %xmm0,0x120(%rsp)
movapd %xmm0,0x110(%rsp)
movapd %xmm0,0x100(%rsp)
movapd %xmm0,0xf0(%rsp)
movl   $0x0,0x150(%rsp)
movapd %xmm0,0x1b0(%rsp)
movapd %xmm0,0x1a0(%rsp)
movapd %xmm0,0x190(%rsp)
movapd %xmm0,0x180(%rsp)
movapd %xmm0,0x170(%rsp)
movapd %xmm0,0x160(%rsp)
movl   $0x0,0x1c0(%rsp)
movapd %xmm0,0xd0(%rsp)
movapd %xmm0,0xc0(%rsp)
movapd %xmm0,0xb0(%rsp)
movapd %xmm0,0xa0(%rsp)
movapd %xmm0,0x90(%rsp)
movapd %xmm0,0x80(%rsp)
movl   $0x0,0xe0(%rsp)
movapd %xmm0,0x60(%rsp)
movapd %xmm0,0x50(%rsp)
movapd %xmm0,0x40(%rsp)
movapd %xmm0,0x30(%rsp)
movapd %xmm0,0x20(%rsp)
movapd %xmm0,0x10(%rsp)
movl   $0x0,0x70(%rsp)
lea    0xdc5(%rip),%rdi
lea    0xf0(%rsp),%rsi
lea    0x160(%rsp),%rbx
mov    %rbx,%rdx
call   1050 <scanf@plt>
mov    0x2d8e(%rip),%r14
cmp    (%r14),%rax
je     1356 <main+0x226>
xor    %ecx,%ecx
lea    0x10(%rsp),%r15
lea    0xd95(%rip),%r12
lea    0xd88(%rip),%r13
lea    0xf0(%rsp),%rbp
xor    %edx,%edx
jmp    129a <main+0x16a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0xffffffff,%edx
add    $0x1,%rcx
add    $0x1,%edx
mov    0xf0(%rsp,%rcx,1),%al
test   %al,%al
je     12c0 <main+0x190>
cmp    $0x2c,%al
je     1290 <main+0x160>
movslq %edx,%rsi
mov    %al,0x80(%rsp,%rsi,1)
jmp    1293 <main+0x163>
cs nopw 0x0(%rax,%rax,1)
nop
movslq %edx,%rax
movb   $0x0,0x80(%rsp,%rax,1)
xor    %eax,%eax
mov    %rbx,%rcx
jmp    12ea <main+0x1ba>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0xffffffff,%eax
add    $0x1,%eax
add    $0x1,%rcx
movzbl (%rcx),%edx
cmp    $0x2c,%dl
je     12e0 <main+0x1b0>
test   %dl,%dl
je     1300 <main+0x1d0>
movslq %eax,%rsi
mov    %dl,0x10(%rsp,%rsi,1)
jmp    12e3 <main+0x1b3>
nop
cltq
movb   $0x0,0x10(%rsp,%rax,1)
lea    0x80(%rsp),%rdi
call   1030 <atof@plt>
movsd  %xmm0,0x8(%rsp)
mov    %r15,%rdi
call   1030 <atof@plt>
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
mov    %r12,%rdi
movapd %xmm1,%xmm0
call   1040 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
call   1050 <scanf@plt>
xor    %ecx,%ecx
mov    $0x0,%edx
cmp    (%r14),%rax
jne    129a <main+0x16a>
xor    %eax,%eax
add    $0x1c8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%s %s\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
store i32 0, i32* %1
%11 = bitcast [100 x i8]* %2 to i8*
%12 = bitcast [100 x i8]* %3 to i8*
%13 = bitcast [100 x i8]* %4 to i8*
%14 = bitcast [100 x i8]* %5 to i8*
br label %15
15: ; preds = %88, %0
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%18 = call i64 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %16, i8* %17)
%19 = load i64, i64* @EOF
%20 = icmp ne i64 %18, %19
br i1 %20, label %21, label %101
21: ; preds = %15
store i32 0, i32* %6
store i32 0, i32* %7
br label %22
22: ; preds = %48, %21
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %24
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %53
29: ; preds = %22
%30 = load i32, i32* %6
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 44
br i1 %35, label %36, label %44
36: ; preds = %29
%37 = load i32, i32* %6
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %38
%40 = load i8, i8* %39
%41 = load i32, i32* %7
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %42
store i8 %40, i8* %43
br label %47
44: ; preds = %29
%45 = load i32, i32* %7
%46 = add nsw i32 %45, -1
store i32 %46, i32* %7
br label %47
47: ; preds = %44, %36
br label %48
48: ; preds = %47
%49 = load i32, i32* %6
%50 = add nsw i32 %49, 1
store i32 %50, i32* %6
%51 = load i32, i32* %7
%52 = add nsw i32 %51, 1
store i32 %52, i32* %7
br label %22
53: ; preds = %22
%54 = load i32, i32* %7
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %55
store i8 0, i8* %56
store i32 0, i32* %6
store i32 0, i32* %7
br label %57
57: ; preds = %83, %53
%58 = load i32, i32* %6
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %59
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %88
64: ; preds = %57
%65 = load i32, i32* %6
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %66
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %69, 44
br i1 %70, label %71, label %79
71: ; preds = %64
%72 = load i32, i32* %6
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %73
%75 = load i8, i8* %74
%76 = load i32, i32* %7
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 %77
store i8 %75, i8* %78
br label %82
79: ; preds = %64
%80 = load i32, i32* %7
%81 = add nsw i32 %80, -1
store i32 %81, i32* %7
br label %82
82: ; preds = %79, %71
br label %83
83: ; preds = %82
%84 = load i32, i32* %6
%85 = add nsw i32 %84, 1
store i32 %85, i32* %6
%86 = load i32, i32* %7
%87 = add nsw i32 %86, 1
store i32 %87, i32* %7
br label %57
88: ; preds = %57
%89 = load i32, i32* %7
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 %90
store i8 0, i8* %91
%92 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%93 = call double @atof(i8* %92)
store double %93, double* %8
%94 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%95 = call double @atof(i8* %94)
store double %95, double* %9
%96 = load double, double* %8
%97 = load double, double* %9
%98 = fsub double %96, %97
store double %98, double* %10
%99 = load double, double* %10
%100 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %99)
br label %15
101: ; preds = %15
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%s %s\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [100 x i8]
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%9 = call i64 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
%10 = load i64, i64* @EOF
%11 = icmp eq i64 %9, %10
br i1 %11, label %56, label %12
12: ; preds = %0, %26
%13 = phi i64 [ %27, %26 ], [ 0, %0 ]
%14 = phi i32 [ %28, %26 ], [ 0, %0 ]
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 %13
%16 = load i8, i8* %15
switch i8 %16, label %17 [
i8 0, label %29
i8 44, label %20
]
17: ; preds = %12
%18 = sext i32 %14 to i64
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %18
store i8 %16, i8* %19
br label %22
20: ; preds = %12
%21 = add nsw i32 %14, -1
br label %22
22: ; preds = %17, %20
%23 = phi i32 [ %14, %17 ], [ %21, %20 ]
%24 = add nuw i64 %13, 1
%25 = add nsw i32 %23, 1
br label %26
26: ; preds = %22, %46
%27 = phi i64 [ %24, %22 ], [ 0, %46 ]
%28 = phi i32 [ %25, %22 ], [ 0, %46 ]
br label %12
29: ; preds = %12
%30 = sext i32 %14 to i64
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %30
store i8 0, i8* %31
br label %32
32: ; preds = %42, %29
%33 = phi i64 [ %44, %42 ], [ 0, %29 ]
%34 = phi i32 [ %45, %42 ], [ 0, %29 ]
%35 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 %33
%36 = load i8, i8* %35
switch i8 %36, label %37 [
i8 0, label %46
i8 44, label %40
]
37: ; preds = %32
%38 = sext i32 %34 to i64
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %38
store i8 %36, i8* %39
br label %42
40: ; preds = %32
%41 = add nsw i32 %34, -1
br label %42
42: ; preds = %37, %40
%43 = phi i32 [ %34, %37 ], [ %41, %40 ]
%44 = add nuw i64 %33, 1
%45 = add nsw i32 %43, 1
br label %32
46: ; preds = %32
%47 = sext i32 %34 to i64
%48 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %47
store i8 0, i8* %48
%49 = call double @atof(i8* %7)
%50 = call double @atof(i8* %8)
%51 = fsub double %49, %50
%52 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %51)
%53 = call i64 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
%54 = load i64, i64* @EOF
%55 = icmp eq i64 %53, %54
br i1 %55, label %56, label %26
56: ; preds = %46, %0
ret i32 0
}