#import <stdio.h>
#import <stdlib.h>


double sqrt(double x) {
    double         xHalf = 0.5 * x;
    long long int  tmp   = 0x5FE6EB50C7B537AAl - ( *(long long int*)&x >> 1);//initial guess
    double         xRes  = * (double*)&tmp;
    
    xRes *= ( 1.5 - ( xHalf * xRes * xRes ) );
    xRes *= ( 1.5 - ( xHalf * xRes * xRes ) );
    xRes *= ( 1.5 - ( xHalf * xRes * xRes ) );
    xRes *= ( 1.5 - ( xHalf * xRes * xRes ) );
    return xRes * x;
}

int main(){
    int a,b;
    char h[10] = {'\0'};
    scanf("%d %d",&a,&b);
    sprintf(h,"%d%d",a,b);
    int n = atoi(h);
    int r = (int)sqrt((double)n);
    printf(n==r*r ? "Yes":"No");
    return 0;
}

; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_620/source.m'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_620/source.m"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"Yes\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"No\00", align 1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
define dso_local double @sqrt(double noundef %x) local_unnamed_addr #0 {
entry:
  %0 = bitcast double %x to i64
  %shr = ashr i64 %0, 1
  %sub = sub nsw i64 6910469410427058090, %shr
  %1 = bitcast i64 %sub to double
  %2 = fmul double %x, -5.000000e-01
  %neg = fmul double %2, %1
  %3 = tail call double @llvm.fmuladd.f64(double %neg, double %1, double 1.500000e+00)
  %mul3 = fmul double %3, %1
  %neg6 = fmul double %2, %mul3
  %4 = tail call double @llvm.fmuladd.f64(double %neg6, double %mul3, double 1.500000e+00)
  %mul7 = fmul double %mul3, %4
  %neg10 = fmul double %2, %mul7
  %5 = tail call double @llvm.fmuladd.f64(double %neg10, double %mul7, double 1.500000e+00)
  %mul11 = fmul double %mul7, %5
  %neg14 = fmul double %2, %mul11
  %6 = tail call double @llvm.fmuladd.f64(double %neg14, double %mul11, double 1.500000e+00)
  %mul15 = fmul double %mul11, %6
  %mul16 = fmul double %mul15, %x
  ret double %mul16
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #3 {
entry:
  %a = alloca i32, align 4
  %b = alloca i32, align 4
  %h = alloca [10 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %a) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %b) #7
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %h) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(10) %h, i8 0, i64 10, i1 false)
  %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b)
  %0 = load i32, ptr %a, align 4, !tbaa !5
  %1 = load i32, ptr %b, align 4, !tbaa !5
  %call1 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %h, ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %0, i32 noundef %1) #7
  %call.i = call i64 @strtol(ptr nocapture noundef nonnull %h, ptr noundef null, i32 noundef 10) #7
  %conv.i = trunc i64 %call.i to i32
  %conv = sitofp i32 %conv.i to double
  %2 = bitcast double %conv to i64
  %shr.i = ashr i64 %2, 1
  %sub.i = sub nsw i64 6910469410427058090, %shr.i
  %3 = bitcast i64 %sub.i to double
  %4 = fmul double %conv, -5.000000e-01
  %neg.i = fmul double %4, %3
  %5 = call double @llvm.fmuladd.f64(double %neg.i, double %3, double 1.500000e+00)
  %mul3.i = fmul double %5, %3
  %neg6.i = fmul double %4, %mul3.i
  %6 = call double @llvm.fmuladd.f64(double %neg6.i, double %mul3.i, double 1.500000e+00)
  %mul7.i = fmul double %mul3.i, %6
  %neg10.i = fmul double %4, %mul7.i
  %7 = call double @llvm.fmuladd.f64(double %neg10.i, double %mul7.i, double 1.500000e+00)
  %mul11.i = fmul double %mul7.i, %7
  %neg14.i = fmul double %4, %mul11.i
  %8 = call double @llvm.fmuladd.f64(double %neg14.i, double %mul11.i, double 1.500000e+00)
  %mul15.i = fmul double %mul11.i, %8
  %mul16.i = fmul double %mul15.i, %conv
  %conv5 = fptosi double %mul16.i to i32
  %mul = mul nsw i32 %conv5, %conv5
  %cmp = icmp eq i32 %mul, %conv.i
  %cond = select i1 %cmp, ptr @.str.2, ptr @.str.3
  %call7 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %cond)
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %h) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %b) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %a) #7
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nofree nosync nounwind willreturn memory(none) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!llvm.linker.options = !{}
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
