#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, int);
int main() {
  int num1, num, mun1 = 0;
  num1 = 5170984;
  num = num1;
  while (num1 != 0) {
    mun1 = (mun1 * 10) + (num1 % 10);
    num1 = num1 / 10;
  }
  printf("%d\t\t%d\n", num, mun1);
  num1 = 406567;
  num = num1;
  mun1 = 0;
  while (num1 != 0) {
    mun1 = (mun1 * 10) + (num1 % 10);
    num1 = num1 / 10;
  }
  printf("%d\t\t%d\n", num, mun1);
  num1 = 368750;
  num = num1;
  mun1 = 0;
  while (num1 != 0) {
    mun1 = (mun1 * 10) + (num1 % 10);
    num1 = num1 / 10;
  }
  printf("%d\t\t%d\n", num, mun1);
  num1 = 2369510;
  num = num1;
  mun1 = 0;
  while (num1 != 0) {
    mun1 = (mun1 * 10) + (num1 % 10);
    num1 = num1 / 10;
  }
  printf("%d\t\t%d\n", num, mun1);
  num1 = 2183293;
  num = num1;
  mun1 = 0;
  while (num1 != 0) {
    mun1 = (mun1 * 10) + (num1 % 10);
    num1 = num1 / 10;
  }
  printf("%d\t\t%d\n", num, mun1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x4ee728,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     116a <main+0x5a>
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x14(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    1133 <main+0x23>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
movl   $0x63427,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     11c7 <main+0xb7>
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x18(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    1190 <main+0x80>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xe2c(%rip),%rdi
call   1030 <printf@plt>
movl   $0x5a06e,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1224 <main+0x114>
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x1c(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    11ed <main+0xdd>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xdcf(%rip),%rdi
call   1030 <printf@plt>
movl   $0x2427e6,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1281 <main+0x171>
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x20(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    124a <main+0x13a>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xd72(%rip),%rdi
call   1030 <printf@plt>
movl   $0x21507d,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     12de <main+0x1ce>
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x24(%rbp),%eax
add    %edx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    12a7 <main+0x197>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xd15(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x4ee728,%esi
mov    $0x4aa05b,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x63427,%esi
mov    $0xbaea4,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x5a06e,%esi
mov    $0xe207,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2427e6,%esi
mov    $0x26f90,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x21507d,%esi
mov    $0x3bdf64,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%d\09\09%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 5170984, i32* %2
%5 = load i32, i32* %2
store i32 %5, i32* %3
br label %6
6: ; preds = %9, %0
%7 = load i32, i32* %2
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %17
9: ; preds = %6
%10 = load i32, i32* %4
%11 = mul nsw i32 %10, 10
%12 = load i32, i32* %2
%13 = srem i32 %12, 10
%14 = add nsw i32 %11, %13
store i32 %14, i32* %4
%15 = load i32, i32* %2
%16 = sdiv i32 %15, 10
store i32 %16, i32* %2
br label %6
17: ; preds = %6
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %19)
store i32 406567, i32* %2
%21 = load i32, i32* %2
store i32 %21, i32* %3
store i32 0, i32* %4
br label %22
22: ; preds = %25, %17
%23 = load i32, i32* %2
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %33
25: ; preds = %22
%26 = load i32, i32* %4
%27 = mul nsw i32 %26, 10
%28 = load i32, i32* %2
%29 = srem i32 %28, 10
%30 = add nsw i32 %27, %29
store i32 %30, i32* %4
%31 = load i32, i32* %2
%32 = sdiv i32 %31, 10
store i32 %32, i32* %2
br label %22
33: ; preds = %22
%34 = load i32, i32* %3
%35 = load i32, i32* %4
%36 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %34, i32 %35)
store i32 368750, i32* %2
%37 = load i32, i32* %2
store i32 %37, i32* %3
store i32 0, i32* %4
br label %38
38: ; preds = %41, %33
%39 = load i32, i32* %2
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %49
41: ; preds = %38
%42 = load i32, i32* %4
%43 = mul nsw i32 %42, 10
%44 = load i32, i32* %2
%45 = srem i32 %44, 10
%46 = add nsw i32 %43, %45
store i32 %46, i32* %4
%47 = load i32, i32* %2
%48 = sdiv i32 %47, 10
store i32 %48, i32* %2
br label %38
49: ; preds = %38
%50 = load i32, i32* %3
%51 = load i32, i32* %4
%52 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %50, i32 %51)
store i32 2369510, i32* %2
%53 = load i32, i32* %2
store i32 %53, i32* %3
store i32 0, i32* %4
br label %54
54: ; preds = %57, %49
%55 = load i32, i32* %2
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %54
%58 = load i32, i32* %4
%59 = mul nsw i32 %58, 10
%60 = load i32, i32* %2
%61 = srem i32 %60, 10
%62 = add nsw i32 %59, %61
store i32 %62, i32* %4
%63 = load i32, i32* %2
%64 = sdiv i32 %63, 10
store i32 %64, i32* %2
br label %54
65: ; preds = %54
%66 = load i32, i32* %3
%67 = load i32, i32* %4
%68 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %66, i32 %67)
store i32 2183293, i32* %2
%69 = load i32, i32* %2
store i32 %69, i32* %3
store i32 0, i32* %4
br label %70
70: ; preds = %73, %65
%71 = load i32, i32* %2
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %81
73: ; preds = %70
%74 = load i32, i32* %4
%75 = mul nsw i32 %74, 10
%76 = load i32, i32* %2
%77 = srem i32 %76, 10
%78 = add nsw i32 %75, %77
store i32 %78, i32* %4
%79 = load i32, i32* %2
%80 = sdiv i32 %79, 10
store i32 %80, i32* %2
br label %70
81: ; preds = %70
%82 = load i32, i32* %3
%83 = load i32, i32* %4
%84 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %82, i32 %83)
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%d\09\09%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 5170984, i32 4890715)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 406567, i32 765604)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 368750, i32 57863)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 2369510, i32 159632)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 2183293, i32 3923812)
ret i32 0
}