On the portion of the straight line x+y=2 which is intercepted between the axes, a square is constructed, away from the origin, with this portion as one of its sides. If p denotes the perpendicular distance of a side of this square from the origin, then the maximum value of p is