int main() {
  char str[200000];
  int a, i, j, k, m, true = 0;
  scanf("%s", str);
  a = strlen(str);
  for (m = 0; m <= a / 2; m++)
    if (str[m] != str[a - m - 1]) {
      printf("No");
      true = 1;
      break;
    }
  if (true == 0)
    printf("Yes");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30d70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x30d68(%rbp)
lea    -0x30d50(%rbp),%rsi
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    -0x30d50(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x30d54(%rbp)
movl   $0x0,-0x30d64(%rbp)
mov    -0x30d64(%rbp),%eax
mov    %eax,-0x30d6c(%rbp)
mov    -0x30d54(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x30d6c(%rbp),%eax
cmp    %ecx,%eax
jg     120e <main+0xde>
movslq -0x30d64(%rbp),%rax
movsbl -0x30d50(%rbp,%rax,1),%eax
ff
mov    -0x30d54(%rbp),%ecx
sub    -0x30d64(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl -0x30d50(%rbp,%rcx,1),%ecx
ff
cmp    %ecx,%eax
je     11f5 <main+0xc5>
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x30d68(%rbp)
jmp    120e <main+0xde>
jmp    11fa <main+0xca>
mov    -0x30d64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30d64(%rbp)
jmp    117d <main+0x4d>
cmpl   $0x0,-0x30d68(%rbp)
jne    1229 <main+0xf9>
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30d70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30d40,%rsp
lea    0xec1(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
lea    0xeab(%rip),%rdi
cmp    $0xffffffff,%eax
jl     11b1 <main+0x81>
movabs $0xffffffff00000000,%r9
ff ff ff
mov    %eax,%edx
shr    $0x1f,%edx
add    %eax,%edx
sar    %edx
add    $0x1,%edx
shl    $0x20,%rax
add    %r9,%rax
xor    %esi,%esi
lea    0xe7d(%rip),%r8
cs nopw 0x0(%rax,%rax,1)
movzbl (%rsp,%rsi,1),%ebx
mov    %rax,%rcx
sar    $0x20,%rcx
cmp    (%rsp,%rcx,1),%bl
jne    11ae <main+0x7e>
add    $0x1,%rsi
add    %r9,%rax
cmp    %rsi,%rdx
jne    1190 <main+0x60>
jmp    11b1 <main+0x81>
mov    %r8,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30d40,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [3 x i8] c"No\00"
@.str.2 = [4 x i8] c"Yes\00"
define i32 @main() {
%1 = alloca [200000 x i8]
%2 = getelementptr inbounds [200000 x i8], [200000 x i8]* %1, i64 0, i64 0
%3 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i64 @strlen(i8* %2)
%5 = trunc i64 %4 to i32
%6 = icmp slt i32 %5, -1
br i1 %6, label %25, label %7
7: ; preds = %0
%8 = sdiv i32 %5, 2
%9 = add nuw nsw i32 %8, 1
%10 = zext i32 %9 to i64
br label %14
11: ; preds = %14
%12 = add nuw nsw i64 %15, 1
%13 = icmp eq i64 %12, %10
br i1 %13, label %25, label %14
14: ; preds = %7, %11
%15 = phi i64 [ 0, %7 ], [ %12, %11 ]
%16 = getelementptr inbounds [200000 x i8], [200000 x i8]* %1, i64 0, i64 %15
%17 = load i8, i8* %16
%18 = xor i64 %15, -1
%19 = add i64 %4, %18
%20 = shl i64 %19, 32
%21 = ashr exact i64 %20, 32
%22 = getelementptr inbounds [200000 x i8], [200000 x i8]* %1, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = icmp eq i8 %17, %23
br i1 %24, label %11, label %25
25: ; preds = %11, %14, %0
%26 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), %0 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), %14 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), %11 ]
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %26)
ret i32 0
}