In a revision to the earlier count, the candle factory actually produced 4777 candles initially, not 5725, and 2594 were defective and had to be discarded. Using this updated count, how many viable candles remained from the initial production?