Pharoah Construction Company earned $403,000 during the year ended June 30, 2017. After paying out $225,794 in dividends, the balance went into retained earnings. If the firm's total retained earnings were $847,042 at the end of fiscal year 2017, what were the retained earnings on its balance sheet on July 1, 2016