In the curve y=px2+qx+r passes through the point (1,2) and the line y=x touches it at the origin, then the values of p,q and r are