#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 */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ fill_array(char *, int /*<<< orphan*/ *, size_t);
int /*<<< orphan*/ free(char *);
int nth_position(int /*<<< orphan*/, int);
int /*<<< orphan*/ print_in_binary(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
size_t read_line(char **, size_t *);
int /*<<< orphan*/ reverce_bit(int /*<<< orphan*/ *, size_t);
int /*<<< orphan*/ set_bit(int /*<<< orphan*/ *, int, int);
int main() {
  char *buf = NULL;
  size_t size = 0;
  size_t spacesCount = read_line(&buf, &size);
  size_t digitCount = spacesCount + 1;
  uint64_t digits[digitCount];
  fill_array(buf, digits, digitCount);
  int i = 0;
  for (i = 0; i < digitCount; i += 2) {
    int j;
    for (j = 0; j < 64; j += 2) {
      int currentBitOne = nth_position(digits[i], j);
      int currentBitTwo = nth_position(digits[i + 1], j);
      if (currentBitOne != currentBitTwo) {
        set_bit(&digits[i], j, currentBitTwo);
        set_bit(&digits[i + 1], j, currentBitOne);
      }
    }
  }
  reverce_bit(digits, digitCount);
  for (i = 0; i < digitCount; i++) {
    set_bit(&digits[i], 63, 0);
    printf("%llu ", digits[i]);
    print_in_binary(digits[i]);
    printf("\n");
  }
  free(buf);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1090 <read_line@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,-0x50(%rbp)
mov    %rsi,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rdx
call   1080 <fill_array@plt>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x3c(%rbp)
movslq -0x3c(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    12bb <main+0x13b>
movl   $0x0,-0x40(%rbp)
cmpl   $0x40,-0x40(%rbp)
jge    12a8 <main+0x128>
mov    -0x50(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x40(%rbp),%esi
call   10a0 <nth_position@plt>
mov    %eax,%ecx
mov    -0x50(%rbp),%rax
mov    %ecx,-0x44(%rbp)
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x40(%rbp),%esi
call   10a0 <nth_position@plt>
mov    %eax,-0x48(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x48(%rbp),%eax
je     1295 <main+0x115>
mov    -0x50(%rbp),%rdi
movslq -0x3c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x40(%rbp),%esi
mov    -0x48(%rbp),%edx
call   1060 <set_bit@plt>
mov    -0x50(%rbp),%rdi
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x40(%rbp),%esi
mov    -0x44(%rbp),%edx
call   1060 <set_bit@plt>
jmp    129a <main+0x11a>
mov    -0x40(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x40(%rbp)
jmp    1214 <main+0x94>
jmp    12ad <main+0x12d>
mov    -0x3c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x3c(%rbp)
jmp    11ff <main+0x7f>
mov    -0x50(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <reverce_bit@plt>
movl   $0x0,-0x3c(%rbp)
movslq -0x3c(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    133d <main+0x1bd>
mov    -0x50(%rbp),%rdi
movslq -0x3c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    $0x3f,%esi
xor    %edx,%edx
call   1060 <set_bit@plt>
mov    -0x50(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcf6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x50(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
call   1070 <print_in_binary@plt>
lea    0xcde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12cf <main+0x14f>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    0x2c93(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x50(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   10a0 <read_line@plt>
mov    %rax,%r12
mov    %rsp,%r14
lea    0x1(%rax),%rdx
lea    0xf(,%rdx,4),%rax
and    $0xfffffffffffffff0,%rax
mov    %rsp,%rbx
sub    %rax,%rbx
mov    %rbx,%rsp
mov    -0x30(%rbp),%rdi
mov    %rbx,%rsi
call   1090 <fill_array@plt>
inc    %r12
jne    11fe <main+0x6e>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1060 <reverce_bit@plt>
jmp    12d6 <main+0x146>
mov    %r14,-0x38(%rbp)
xor    %r15d,%r15d
mov    %r12,-0x48(%rbp)
mov    %rbx,-0x40(%rbp)
jmp    1221 <main+0x91>
nop
add    $0x2,%r15
mov    -0x48(%rbp),%r12
cmp    %r15,%r12
mov    -0x40(%rbp),%rbx
jbe    1281 <main+0xf1>
lea    (%rbx,%r15,4),%r12
lea    0x0(,%r15,4),%r13
or     $0x4,%r13
add    %rbx,%r13
mov    $0xfffffffe,%ebx
jmp    1245 <main+0xb5>
nopl   0x0(%rax,%rax,1)
cmp    $0x3e,%ebx
jae    1210 <main+0x80>
add    $0x2,%ebx
mov    (%r12),%edi
mov    %ebx,%esi
call   10b0 <nth_position@plt>
mov    %eax,%r14d
mov    0x0(%r13),%edi
mov    %ebx,%esi
call   10b0 <nth_position@plt>
cmp    %eax,%r14d
je     1240 <main+0xb0>
mov    %r12,%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1070 <set_bit@plt>
mov    %r13,%rdi
mov    %ebx,%esi
mov    %r14d,%edx
call   1070 <set_bit@plt>
jmp    1240 <main+0xb0>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1060 <reverce_bit@plt>
test   %r12,%r12
mov    -0x38(%rbp),%r14
je     12d6 <main+0x146>
lea    0xd64(%rip),%r15
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    $0x3f,%esi
xor    %edx,%edx
call   1070 <set_bit@plt>
mov    (%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%edi
call   1080 <print_in_binary@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
add    $0x4,%rbx
add    $0xffffffffffffffff,%r12
jne    12a0 <main+0x110>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    0x2cfa(%rip),%rax
mov    (%rax),%eax
mov    %r14,%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%llu \00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i8*
%2 = alloca i64
%3 = bitcast i8** %1 to i8*
store i8* null, i8** %1
%4 = bitcast i64* %2 to i8*
store i64 0, i64* %2
%5 = call i64 @read_line(i8** %1, i64* %2)
%6 = add i64 %5, 1
%7 = call i8* @llvm.stacksave()
%8 = alloca i32, i64 %6
%9 = load i8*, i8** %1
%10 = call i32 @fill_array(i8* %9, i32* %8, i64 %6)
%11 = icmp eq i64 %6, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @reverce_bit(i32* %8, i64 %6)
br label %48
14: ; preds = %0, %32
%15 = phi i64 [ %33, %32 ], [ 0, %0 ]
%16 = getelementptr inbounds i32, i32* %8, i64 %15
%17 = or i64 %15, 1
%18 = getelementptr inbounds i32, i32* %8, i64 %17
br label %19
19: ; preds = %14, %29
%20 = phi i32 [ 0, %14 ], [ %30, %29 ]
%21 = load i32, i32* %16
%22 = call i32 @nth_position(i32 %21, i32 %20)
%23 = load i32, i32* %18
%24 = call i32 @nth_position(i32 %23, i32 %20)
%25 = icmp eq i32 %22, %24
br i1 %25, label %29, label %26
26: ; preds = %19
%27 = call i32 @set_bit(i32* %16, i32 %20, i32 %24)
%28 = call i32 @set_bit(i32* %18, i32 %20, i32 %22)
br label %29
29: ; preds = %26, %19
%30 = add nuw nsw i32 %20, 2
%31 = icmp ult i32 %20, 62
br i1 %31, label %19, label %32
32: ; preds = %29
%33 = add nuw i64 %15, 2
%34 = icmp ugt i64 %6, %33
br i1 %34, label %14, label %35
35: ; preds = %32
%36 = call i32 @reverce_bit(i32* %8, i64 %6)
br i1 %11, label %48, label %37
37: ; preds = %35, %37
%38 = phi i64 [ %46, %37 ], [ 0, %35 ]
%39 = getelementptr inbounds i32, i32* %8, i64 %38
%40 = call i32 @set_bit(i32* %39, i32 63, i32 0)
%41 = load i32, i32* %39
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %41)
%43 = load i32, i32* %39
%44 = call i32 @print_in_binary(i32 %43)
%45 = call i32 @putchar(i32 10)
%46 = add nuw i64 %38, 1
%47 = icmp eq i64 %38, %5
br i1 %47, label %48, label %37
48: ; preds = %37, %12, %35
%49 = load i8*, i8** %1
%50 = call i32 @free(i8* %49)
%51 = load i32, i32* @EXIT_SUCCESS
ret i32 %51
}