郷に入りては郷に従え (hiragana ごうにいりてはごうにしたがえ, romaji gō ni irite wa gō ni shitagae)
Literally “entering the countryside, follow the custom [thereof].”