public String toString() {
	String res = this.a==0? "": ""+this.a;
	switch(this.b) {
	case  0: return res;
	case  1: return res + "+w";
	case -1: return res + "-w";
	default: return res + (this.b>0? "+": "") + this.b + "w";
	}
    }