In 494 BC, the city was at war with two neighboring tribes. In what year was the city in conflict with two nearby tribes?