In triangle $ABC$, we connect vertex $B$ to the point that divides side $AC$ into a ratio of $1:2$ closer to $A$. Let the intersection of this segment and the median from vertex $A$ be denoted by $P$, and the centroid of the triangle by $S$. In what ratio does $P$ divide segment $AS$?