Pharoah Company began the year with retained earnings of $403000. During the year, the company recorded revenues of $503000, expenses of $382000, and paid dividends of $42500. What was Pharoah's retained earnings balance at the end of the year?