Find the smallest of four consecutive integers such that if twice the sum of the two smallest is added to three times the sum of the two largest, the result is 77.