import Foundation
 
struct StdIn {
    static var data: NSData {
         return NSFileHandle.fileHandleWithStandardInput().readDataToEndOfFile()
    }
    static var string: String {
        return  String(data:data, encoding:NSUTF8StringEncoding) ?? ""
    }
    static var lines: [String] {
        return string.componentsSeparatedByString("\n")
    }
}
 
extension String {
   func tokens(delimter: String = " ") -> [String] {
       return self.componentsSeparatedByString(delimter)
   }
}

let sq = (1..<100).map { n in n * n }
func hoge() {
  let nums = StdIn.string.tokens()
  
  let x = nums[0]
  let y = nums[1]
  let xy = Int(x + y) ?? 0

  if sq.contains(xy) { 
    print("Yes")
  } else {
    print("No")
  }
}

hoge()