Show that if all sides of a triangle have integer lengths and one of them is equal to \(1\), then the other two have lengths equal to each other.