public static PolynomialComplex getCPolynomial(){
		while(true){
			Scanner input = new Scanner(System.in);
			String inputString = input.nextLine();
			if (inputString.length()==0){
				continue;
			}
			StringTokenizer st=new StringTokenizer(inputString);
			ArrayList<Complex>coefficients=new ArrayList<Complex>();
			while(st.hasMoreTokens()){
				String token=st.nextToken();
				StringTokenizer st2 = new StringTokenizer(token,",");
				Double a = Double.parseDouble(st2.nextToken());
				Double b = Double.parseDouble(st2.nextToken());
				Complex c = new Complex(a,b);
				coefficients.add(c);
			}
			Complex[]a=new Complex[coefficients.size()];
			for (int i=0;i<a.length;i++){
				a[i]=coefficients.get(i);
			}
			return new PolynomialComplex(a);
		}
	}