#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 /*<<< orphan*/ scanf(char *, int *, ...);
int main() {
  int i, x, y, z, round;
  scanf("%d", &round);
  for (i = 0; i < round; i++) {
    scanf("%d %d %d", &x, &y, &z);
    if (x == y && y == z) {
      printf("xyz\n");
    } else if (x == y) {
      printf("xy\n");
    } else if (x == z) {
      printf("xz\n");
    } else if (y == z) {
      printf("yz\n");
    } else if (x > y && x > z) {
      printf("x\n");
    } else if (y > x && y > z) {
      printf("y\n");
    } else if (z > y && z > x) {
      printf("z\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed0(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1295 <main+0x175>
lea    0xea5(%rip),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1197 <main+0x77>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    1197 <main+0x77>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
jmp    1282 <main+0x162>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    11b4 <main+0x94>
lea    0xe64(%rip),%rdi
call   1030 <printf@plt>
jmp    127d <main+0x15d>
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    11d1 <main+0xb1>
lea    0xe4b(%rip),%rdi
call   1030 <printf@plt>
jmp    1278 <main+0x158>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    11ee <main+0xce>
lea    0xe26(%rip),%rdi
call   1030 <printf@plt>
jmp    1273 <main+0x153>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1217 <main+0xf7>
mov    -0xc(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    1217 <main+0xf7>
lea    0xe09(%rip),%rdi
call   1030 <printf@plt>
jmp    126e <main+0x14e>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1240 <main+0x120>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    1240 <main+0x120>
lea    0xdd9(%rip),%rdi
call   1030 <printf@plt>
jmp    1269 <main+0x149>
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1264 <main+0x144>
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1264 <main+0x144>
lea    0xdb4(%rip),%rdi
call   1030 <printf@plt>
jmp    1269 <main+0x149>
jmp    126e <main+0x14e>
jmp    1273 <main+0x153>
jmp    1278 <main+0x158>
jmp    127d <main+0x15d>
jmp    1282 <main+0x162>
jmp    1287 <main+0x167>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1148 <main+0x28>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xed1(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpl   $0x0,0x8(%rsp)
jle    1207 <main+0xe7>
lea    0x14(%rsp),%r15
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%r13
lea    0xeaf(%rip),%rbx
lea    0xea5(%rip),%rbp
xor    %r14d,%r14d
nopl   0x0(%rax)
lea    0xe89(%rip),%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x10(%rsp),%ecx
mov    0xc(%rsp),%eax
mov    %rbx,%rdi
cmp    %eax,%ecx
je     1199 <main+0x79>
mov    %rbp,%rdi
mov    0x14(%rsp),%edx
cmp    %ecx,%edx
cmovne %rbp,%rdi
jne    11c0 <main+0xa0>
call   1030 <puts@plt>
add    $0x1,%r14d
cmp    0x8(%rsp),%r14d
jl     1170 <main+0x50>
jmp    1207 <main+0xe7>
nopw   0x0(%rax,%rax,1)
lea    0xe44(%rip),%rdi
cmp    %eax,%edx
je     11d2 <main+0xb2>
lea    0xe40(%rip),%rdi
je     11a5 <main+0x85>
cmp    %eax,%ecx
je     11a5 <main+0x85>
cmp    %ecx,%edx
jle    11e7 <main+0xc7>
lea    0xe26(%rip),%rdi
cmp    %eax,%edx
jg     11a5 <main+0x85>
cmp    %edx,%ecx
jle    11f6 <main+0xd6>
lea    0xe1d(%rip),%rdi
cmp    %eax,%ecx
jg     11a5 <main+0x85>
cmp    %ecx,%eax
jle    11aa <main+0x8a>
lea    0xe0b(%rip),%rdi
cmp    %edx,%eax
jg     11a5 <main+0x85>
jmp    11aa <main+0x8a>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [9 x i8] c"%d %d %d\00"
@str = [2 x i8] c"z\00"
@str.9 = [2 x i8] c"y\00"
@str.10 = [2 x i8] c"x\00"
@str.11 = [3 x i8] c"yz\00"
@str.12 = [3 x i8] c"xz\00"
@str.13 = [3 x i8] c"xy\00"
@str.14 = [4 x i8] c"xyz\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%10 = load i32, i32* %4
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %45
12: ; preds = %0, %41
%13 = phi i32 [ %42, %41 ], [ 0, %0 ]
%14 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%15 = load i32, i32* %1
%16 = load i32, i32* %2
%17 = icmp eq i32 %15, %16
%18 = load i32, i32* %3
%19 = icmp eq i32 %16, %18
%20 = select i1 %17, i1 %19, i1 false
%21 = select i1 %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.13, i64 0, i64 0)
br i1 %17, label %38, label %22
22: ; preds = %12
%23 = icmp eq i32 %15, %18
%24 = select i1 %23, i1 true, i1 %19
%25 = select i1 %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @str.11, i64 0, i64 0)
br i1 %24, label %38, label %26
26: ; preds = %22
%27 = icmp sgt i32 %15, %16
%28 = icmp sgt i32 %15, %18
%29 = select i1 %27, i1 %28, i1 false
br i1 %29, label %38, label %30
30: ; preds = %26
%31 = icmp sgt i32 %16, %15
%32 = icmp sgt i32 %16, %18
%33 = select i1 %31, i1 %32, i1 false
br i1 %33, label %38, label %34
34: ; preds = %30
%35 = icmp sgt i32 %18, %16
%36 = icmp sgt i32 %18, %15
%37 = select i1 %35, i1 %36, i1 false
br i1 %37, label %38, label %41
38: ; preds = %22, %12, %34, %30, %26
%39 = phi i8* [ %21, %12 ], [ %25, %22 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.10, i64 0, i64 0), %26 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.9, i64 0, i64 0), %30 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0), %34 ]
%40 = call i32 @puts(i8* dereferenceable(1) %39)
br label %41
41: ; preds = %38, %34
%42 = add nuw nsw i32 %13, 1
%43 = load i32, i32* %4
%44 = icmp slt i32 %42, %43
br i1 %44, label %12, label %45
45: ; preds = %41, %0
ret i32 0
}