#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;
int /*<<< orphan*/ printf(char *);
scalar_t__ scanf(char *, int *);
int main() {
  int N, num;
  while (scanf("%d", &N) != EOF) {
    if (N >= 2 & N < 10)
      num = 10;
    else
      num = 100;
    if ((N * N) % num == N)
      printf("Yes!\n");
    else
      printf("No!\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    0x2ea2(%rip),%rcx
cmp    (%rcx),%rax
je     11bc <main+0x9c>
cmpl   $0x2,-0x8(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0xa,-0x8(%rbp)
setl   %cl
and    $0x1,%cl
movzbl %cl,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     117f <main+0x5f>
movl   $0xa,-0xc(%rbp)
jmp    1186 <main+0x66>
movl   $0x64,-0xc(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    -0x8(%rbp),%edx
jne    11ab <main+0x8b>
lea    0xe62(%rip),%rdi
call   1030 <printf@plt>
jmp    11b7 <main+0x97>
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xecc(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x2ea3(%rip),%r15
cmp    (%r15),%rax
jne    115a <main+0x3a>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
lea    0xea6(%rip),%r12
lea    0xe9b(%rip),%r13
lea    0xe91(%rip),%r14
lea    0xc(%rsp),%rbx
jmp    1195 <main+0x75>
cs nopw 0x0(%rax,%rax,1)
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
cmp    (%r15),%rax
je     114a <main+0x2a>
mov    0xc(%rsp),%ecx
lea    -0x2(%rcx),%eax
mov    $0xa,%esi
cmp    $0x8,%eax
jb     11ab <main+0x8b>
mov    $0x64,%esi
mov    %ecx,%eax
imul   %ecx,%eax
xor    %edx,%edx
div    %esi
mov    %r12,%rdi
cmp    %ecx,%edx
je     1180 <main+0x60>
mov    %r13,%rdi
jmp    1180 <main+0x60>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.1 = [6 x i8] c"Yes!\0A\00"
@.str.2 = [5 x i8] c"No!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
br label %4
4: ; preds = %31, %0
%5 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = load i64, i64* @EOF
%7 = icmp ne i64 %5, %6
br i1 %7, label %8, label %32
8: ; preds = %4
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 2
%11 = zext i1 %10 to i32
%12 = load i32, i32* %2
%13 = icmp slt i32 %12, 10
%14 = zext i1 %13 to i32
%15 = and i32 %11, %14
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %8
store i32 10, i32* %3
br label %19
18: ; preds = %8
store i32 100, i32* %3
br label %19
19: ; preds = %18, %17
%20 = load i32, i32* %2
%21 = load i32, i32* %2
%22 = mul nsw i32 %20, %21
%23 = load i32, i32* %3
%24 = srem i32 %22, %23
%25 = load i32, i32* %2
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %19
%28 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %31
29: ; preds = %19
%30 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %31
31: ; preds = %29, %27
br label %4
32: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@str = [4 x i8] c"No!\00"
@str.3 = [5 x i8] c"Yes!\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i64, i64* @EOF
%5 = icmp eq i64 %3, %4
br i1 %5, label %19, label %6
6: ; preds = %0, %6
%7 = load i32, i32* %1
%8 = add i32 %7, -2
%9 = icmp ult i32 %8, 8
%10 = select i1 %9, i32 10, i32 100
%11 = mul nsw i32 %7, %7
%12 = urem i32 %11, %10
%13 = icmp eq i32 %12, %7
%14 = select i1 %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0)
%15 = call i32 @puts(i8* dereferenceable(1) %14)
%16 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%17 = load i64, i64* @EOF
%18 = icmp eq i64 %16, %17
br i1 %18, label %19, label %6
19: ; preds = %6, %0
ret i32 0
}