import narzedzia.LZesp;
import java.io.*;

public class TestLZesp
{
    static BufferedReader stdwe =
        new BufferedReader(new InputStreamReader(System.in));
    static PrintWriter stdwy =
        new PrintWriter(new OutputStreamWriter(System.out),true);
    static PrintWriter bledy =
        new PrintWriter(new OutputStreamWriter(System.err),true);

    public static void main (String[] args) throws Exception
    {
        bledy.print("wpisz pierwsza liczbe zespolona: "); bledy.flush();
        LZesp p = LZesp.konwertujLZesp(stdwe.readLine());
        bledy.print("wpisz druga liczbe zespolona: "); bledy.flush();
        LZesp q = LZesp.konwertujLZesp(stdwe.readLine());
        stdwy.println("suma    = "+LZesp.suma(p,q));
        stdwy.println("roznica = "+LZesp.roznica(p,q));
        stdwy.println("iloczyn = "+LZesp.iloczyn(p,q));
        stdwy.println("iloraz  = "+LZesp.iloraz(p,q));
    }
}
