《后汉书·列传·班彪列传上》
因此圣人严格选择邻居，特别注意环境的影响。从前周成王做孺子时出外就由周公、邵公、太史佚等人辅佐他；在朝内就大颠、闳夭、南宫适、散宜生等人辅佐，他的左右前后，没有违背礼节之义，所在成王一登上王位，天下空前的太平。
习与恶人居，不能无为恶，犹生长于楚，不能无楚言也 是以圣人审所与居，而戒慎所习。昔成王之为孺子，出则周公，邵公、太史佚，入则大颠、闳夭、南宫括、散宜生，左右前后，礼无违者，故成王一日即位，天下旷然太平。
Hence, a sage would be very particular about choosing his neighbors, and pay much attention to the influence of the environment. For instance, when King Cheng of the Zhou Dynasty was young and out of the palace, he was tutored by the Dukes of Zhou and Shao, and the Grand Historian Yi; within the palace, he was tutored by Dadian, Hong Yao, Nango Shi, and Sanyi Sheng. There was no one at any time who did not follow the rules of propriety, and therefore King Cheng was able to bring unprecedented peace and tranquility to the world.
<s>[INST] Given the Classical Chinese text: 与其偕行，不若独行；与其同住，不若独处。, provide a step-by-step translation process to arrive at the English translation. [/INST] Step 1: Word segmentation:与其 | 偕 | 行 | ， | 不 | 若 | 独 | 行 | ； | 其 | 与 | 同 | 住 | ， | 不 | 若 | 独 | 处 |。 Step 2: Lexical lookup:与其：rather than / instead of偕：together行：walk / go若：if / than独：alone / only处：stay / live Step 3: Grammatical analysis:与其偕行：rather than walk together与其同住：rather than live together不若独行：rather walk alone不若独处：rather stay alone Step 4: Translation: It is better to walk alone than to walk together. It is better to live alone than to live together. Final English translation: It is better to walk alone than to walk with a companion. It is better to live alone than to live with a roommate.</s>
Given the Classical Chinese text: 与其偕行，不若独行；与其同住，不若独处。, provide a step-by-step translation process to arrive at the English translation.
user
Step 1: Word segmentation:与其 | 偕 | 行 | ， | 不 | 若 | 独 | 行 | ； | 其 | 与 | 同 | 住 | ， | 不 | 若 | 独 | 处 |。 Step 2: Lexical lookup:与其：rather than / instead of偕：together行：walk / go若：if / than独：alone / only处：stay / live Step 3: Grammatical analysis:与其偕行：rather than walk together与其同住：rather than live together不若独行：rather walk alone不若独处：rather stay alone Step 4: Translation: It is better to walk alone than to walk together. It is better to live alone than to live together. Final English translation: It is better to walk alone than to walk with a companion. It is better to live alone than to live with a roommate.
assistant