from sys import stdin





def main() -> None:

    a = next_int()

    b = next_int()



    ab = int(str(a) + str(b))

    sqrt = int(ab ** 0.5)



    print((["No","Yes"][sqrt ** 2 == ab]))





def next_int() -> int:

    return int(next_str())





def next_str() -> str:

    result = ""

    while True:

        tmp = stdin.read(1)

        if tmp.strip() != "":

            result += tmp

        elif tmp != '\r':

            break

    return result





if __name__ == '__main__':

    main()
from sys import stdin





def main() -> None:

    a = next_int()

    b = next_int()



    ab = int(str(a) + str(b))

    sqrt = int(ab ** 0.5)



    print((["No", "Yes"][int(sqrt ** 2 == ab)]))





def next_int() -> int:

    return int(next_str())





def next_str() -> str:

    result = ""

    while True:

        tmp = stdin.read(1)

        if tmp.strip() != "":

            result += tmp

        elif tmp != '\r':

            break

    return result





if __name__ == '__main__':

    main()
from sys import stdin


def main() -> None:
    a = next_int()
    b = next_int()
    ab = int(str(a) + str(b))
    sqrt = int(ab**0.5)
    print((["No", "Yes"][sqrt**2 == ab]))


def next_int() -> int:
    return int(next_str())


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != "\r":
            break
    return result


if __name__ == "__main__":
    main()

from sys import stdin


def main() -> None:
    a = next_int()
    b = next_int()
    ab = int(str(a) + str(b))
    sqrt = int(ab**0.5)
    print((["No", "Yes"][int(sqrt**2 == ab)]))


def next_int() -> int:
    return int(next_str())


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != "\r":
            break
    return result


if __name__ == "__main__":
    main()

-    print((["No", "Yes"][sqrt**2 == ab])) +    print((["No", "Yes"][int(sqrt**2 == ab)]))