#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 /*<<< orphan*/ scanf(char *, ...);
int main() {
  int a, b;
  char chr;
  scanf("%d%d", &a, &b);
  scanf("\n%c", &chr);
  for (int i = a; i <= b; i++) {
    if ((chr == 'p') && (i % 2 == 0)) {
      printf("%d ", i);
    } else if ((chr == 'n') && (i % 2 == 1)) {
      printf("%d ", i);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeb9(%rip),%rdi
lea    -0xd(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11e6 <main+0xc6>
movsbl -0xd(%rbp),%eax
cmp    $0x70,%eax
jne    119e <main+0x7e>
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    119e <main+0x7e>
mov    -0x14(%rbp),%esi
lea    0xe75(%rip),%rdi
call   1030 <printf@plt>
jmp    11d3 <main+0xb3>
movsbl -0xd(%rbp),%eax
cmp    $0x6e,%eax
jne    11ce <main+0xae>
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    11ce <main+0xae>
mov    -0x14(%rbp),%esi
lea    0xe40(%rip),%rdi
call   1030 <printf@plt>
jmp    11d3 <main+0xb3>
jmp    11d8 <main+0xb8>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    115d <main+0x3d>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xed2(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xebf(%rip),%rdi
lea    0xf(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x14(%rsp),%ebx
cmp    0x10(%rsp),%ebx
jle    1166 <main+0x46>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe9c(%rip),%r14
jmp    1185 <main+0x65>
nop
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
lea    0x1(%rbx),%eax
cmp    0x10(%rsp),%ebx
mov    %eax,%ebx
jge    115c <main+0x3c>
movzbl 0xf(%rsp),%eax
cmp    $0x70,%al
jne    1195 <main+0x75>
mov    %ebx,%ecx
and    $0x1,%ecx
je     1170 <main+0x50>
cmp    $0x6e,%al
jne    117a <main+0x5a>
mov    %ebx,%eax
shr    $0x1f,%eax
add    %ebx,%eax
and    $0xfffffffe,%eax
mov    %ebx,%ecx
sub    %eax,%ecx
cmp    $0x1,%ecx
je     1170 <main+0x50>
jmp    117a <main+0x5a>

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [4 x i8] c"\0A%c\00"
@.str.2 = [4 x i8] c"%d \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%8 = load i32, i32* %2
store i32 %8, i32* %5
br label %9
9: ; preds = %37, %0
%10 = load i32, i32* %5
%11 = load i32, i32* %3
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %40
13: ; preds = %9
%14 = load i8, i8* %4
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 112
br i1 %16, label %17, label %24
17: ; preds = %13
%18 = load i32, i32* %5
%19 = srem i32 %18, 2
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = load i32, i32* %5
%23 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %22)
br label %36
24: ; preds = %17, %13
%25 = load i8, i8* %4
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 110
br i1 %27, label %28, label %35
28: ; preds = %24
%29 = load i32, i32* %5
%30 = srem i32 %29, 2
%31 = icmp eq i32 %30, 1
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = load i32, i32* %5
%34 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %33)
br label %35
35: ; preds = %32, %28, %24
br label %36
36: ; preds = %35, %21
br label %37
37: ; preds = %36
%38 = load i32, i32* %5
%39 = add nsw i32 %38, 1
store i32 %39, i32* %5
br label %9
40: ; preds = %9
%41 = load i32, i32* %1
ret i32 %41
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [4 x i8] c"\0A%c\00"
@.str.2 = [4 x i8] c"%d \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = icmp sgt i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %26, %0
ret i32 0
12: ; preds = %0, %26
%13 = phi i32 [ %27, %26 ], [ %8, %0 ]
%14 = load i8, i8* %3
%15 = icmp eq i8 %14, 112
%16 = and i32 %13, 1
%17 = icmp eq i32 %16, 0
%18 = select i1 %15, i1 %17, i1 false
br i1 %18, label %24, label %19
19: ; preds = %12
%20 = icmp eq i8 %14, 110
%21 = srem i32 %13, 2
%22 = icmp eq i32 %21, 1
%23 = select i1 %20, i1 %22, i1 false
br i1 %23, label %24, label %26
24: ; preds = %19, %12
%25 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %13)
br label %26
26: ; preds = %24, %19
%27 = add nsw i32 %13, 1
%28 = load i32, i32* %2
%29 = icmp slt i32 %13, %28
br i1 %29, label %12, label %11
}