//
//  main.m
//  objc
//
//  Created by Robert Paul on 1/28/18.
//  Copyright © 2018 Robert Paul. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    NSLog(@"Hello, World!");
    
    int a, b = 0;
    scanf("%d", &a);
    scanf("%d", &b);
    int po = 1;
    while (po < b) po *= 10;
    int comb = a * po;
    int s = floor(sqrt(comb));

    printf(s * s == comb ? "Yes" : "No");
    printf("\n");
    
    [pool drain];
    return 0;
}
