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