print grep((($'**$`-$_**$`)**(1/$`))!~/\./,1..$'-<>=~$")?Yes:No