A company has both permanent and contract employees. 75% of them are skilled workers and the remaining are unskilled workers. If 70% of the skilled workers and 40% of the unskilled workers are permanent employees and the total number of contract employees is 315, find the total number of employees in the company.