A fruit seller had some apples. He sells 40% apples and still has 420 apples. How many apples he had at the begining?