public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        System.out.print("Enter Re: ");
        String name1 = reader.readLine();
        System.out.print("Enter Im: ");
        String name2 = reader.readLine();
        double a=Double.parseDouble(name1);
        double b=Double.parseDouble(name2);
        Complex complex = new Complex();
        complex.a=complex.setA(a);
        complex.b=complex.setB(b);
        System.out.println("Your number is:" + complex.toString());
        System.out.println("module of this number:"+complex.getModule()+" arg: "+complex.getArg());
        complex.conjugate();
        System.out.println("conjugate number: " + complex.a + " " + complex.b + "i");
        complex.conjugate();
        System.out.println("Do you want to compare this number ?\n 1-yes \n 2-no" );
        String quest = reader.readLine();
        double q=Integer.parseInt(quest);
       if (q==1){
            System.out.print("Enter Re: ");
        String name3 = reader.readLine();
        double z1=Double.parseDouble(name3);
            System.out.print("Enter Im: ");
        String name4 = reader.readLine();
        double z2=Double.parseDouble(name4);
            Complex complex2 = new Complex();
            complex2.a=complex2.setA(z1);
            complex2.b=complex2.setB(z2);
            if(complex2.equals(complex)){
                System.out.println("Same numbers");
            }else{
                System.out.println("Different numbers");

        }
}
        System.out.println("What do you want?\nSum-1\nProduct on number-2\ndifference-3\n");
        String q1 = reader.readLine();
        double qq=Integer.parseInt(q1);
        Complex complex3 = new Complex();
        if (qq==1) {

            System.out.println("Enter Re: ");
            String name5 = reader.readLine();
            double z4=Double.parseDouble(name5);
            System.out.println("Enter Im: ");
            String name6 = reader.readLine();
            double z5=Double.parseDouble(name6);
            complex3.a=complex3.setA(z4);
            complex3.b=complex3.setB(z5);
            complex.sum(complex3);
            System.out.println("Sum is:"+complex.a+" + "+complex.b+"i");


        }else if(qq==2)
        {
            String name5 = reader.readLine();
            double z4=Double.parseDouble(name5);
            complex.productOnNumber(z4);
            System.out.println("product on number is:"+complex.a+" + "+complex.b+"i");

        }else if(qq==3)
        {

            System.out.println("Enter Re: ");
            String name5 = reader.readLine();
            double z4=Double.parseDouble(name5);
            System.out.println("Enter Im: ");
            String name6 = reader.readLine();
            double z5=Double.parseDouble(name6);
            complex3.a=complex3.setA(z4);
            complex3.b=complex3.setB(z5);
            complex.difference(complex3);
            System.out.print("difference is:"+complex.a+" + "+complex.b+"i");

        }



}