
import java.util.*;
import static java.util.Map.Entry.comparingByValue;
import static java.util.stream.Collectors.toMap;

public class Main {

    int V;
    String S;

    Main(String S, int V) {
        this.S = S;
        this.V = V;
    }

    public String toString() {
        return S + " " + V;
    }

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);

        String A = Input.next();
        String B = Input.next();

        int C = Integer.parseInt(A + B);

        int N = 1;
        boolean F = false;
        while (N <= C) {
            if (N * N == C) {
                F = true;
                break;
            }
            N++;
        }
        if (F) {
            System.out.println("Yes");
        }else{System.out.println("No");}
    }
} import java.util.*; util.* java import static java.util.Map.Entry.comparingByValue; import static java.util.Map.Entry.comparingByValue; import static java.util.Map.Entry.comparingByValue; import static java.util.stream.Collectors.toMap; import static java.util.stream.Collectors.toMap; import static java.util.stream.Collectors.toMap; public class Main {

    int V;
    String S;

    Main(String S, int V) {
        this.S = S;
        this.V = V;
    }

    public String toString() {
        return S + " " + V;
    }

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);

        String A = Input.next();
        String B = Input.next();

        int C = Integer.parseInt(A + B);

        int N = 1;
        boolean F = false;
        while (N <= C) {
            if (N * N == C) {
                F = true;
                break;
            }
            N++;
        }
        if (F) {
            System.out.println("Yes");
        }else{System.out.println("No");}
    }
} Main int V; V String S; S Main(String S, int V) {
        this.S = S;
        this.V = V;
    } Main {
        this.S = S;
        this.V = V;
    } this.S = S this.S this this.S S this.V = V this.V this this.V V String S S int V V public String toString() {
        return S + " " + V;
    } toString {
        return S + " " + V;
    } return S + " " + V; S + " " + V S + " " + V S " " V public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);

        String A = Input.next();
        String B = Input.next();

        int C = Integer.parseInt(A + B);

        int N = 1;
        boolean F = false;
        while (N <= C) {
            if (N * N == C) {
                F = true;
                break;
            }
            N++;
        }
        if (F) {
            System.out.println("Yes");
        }else{System.out.println("No");}
    } main {

        Scanner Input = new Scanner(System.in);

        String A = Input.next();
        String B = Input.next();

        int C = Integer.parseInt(A + B);

        int N = 1;
        boolean F = false;
        while (N <= C) {
            if (N * N == C) {
                F = true;
                break;
            }
            N++;
        }
        if (F) {
            System.out.println("Yes");
        }else{System.out.println("No");}
    } Scanner Input = new Scanner(System.in); Input new Scanner(System.in) String A = Input.next(); A Input.next() Input.next Input String B = Input.next(); B Input.next() Input.next Input int C = Integer.parseInt(A + B); C Integer.parseInt(A + B) Integer.parseInt Integer A + B A B int N = 1; N 1 boolean F = false; F false while (N <= C) {
            if (N * N == C) {
                F = true;
                break;
            }
            N++;
        } N <= C N C {
            if (N * N == C) {
                F = true;
                break;
            }
            N++;
        } if (N * N == C) {
                F = true;
                break;
            } N * N == C N * N N N C {
                F = true;
                break;
            } F = true F true break; N++ N if (F) {
            System.out.println("Yes");
        }else{System.out.println("No");} F {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {System.out.println("No");} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

    int V;
    String S;

    Main(String S, int V) {
        this.S = S;
        this.V = V;
    }

    public String toString() {
        return S + " " + V;
    }

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);

        String A = Input.next();
        String B = Input.next();

        int C = Integer.parseInt(A + B);

        int N = 1;
        boolean F = false;
        while (N <= C) {
            if (N * N == C) {
                F = true;
                break;
            }
            N++;
        }
        if (F) {
            System.out.println("Yes");
        }else{System.out.println("No");}
    }
} public class Main {

    int V;
    String S;

    Main(String S, int V) {
        this.S = S;
        this.V = V;
    }

    public String toString() {
        return S + " " + V;
    }

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);

        String A = Input.next();
        String B = Input.next();

        int C = Integer.parseInt(A + B);

        int N = 1;
        boolean F = false;
        while (N <= C) {
            if (N * N == C) {
                F = true;
                break;
            }
            N++;
        }
        if (F) {
            System.out.println("Yes");
        }else{System.out.println("No");}
    }
} Main

import java.util.*;
import static java.util.Map.Entry.comparingByValue;
import static java.util.stream.Collectors.toMap;

public class Main {

    int V;
    String S;

    Main(String S, int V) {
        this.S = S;
        this.V = V;
    }

    public String toString() {
        return S + " " + V;
    }

    public static void main(String[] args) {

        Scanner Input = new Scanner(System.in);

        String A = Input.next();
        String B = Input.next();

        int C = Integer.parseInt(A + B);

        int N = 1;
        boolean F = false;
        while (N <= C) {
            if (N * N == C) {
                F = true;
                break;
            }
            N++;
        }
        if (F) {
            System.out.println("Yes");
        }else{System.out.println("No");}
    }
}
