C takes 40 days to finish a piece of work. The speed of B is twice the speed of C and thrice the speed of A. If A and B work on the first day, B and C on the second day, C and A on the third day, how many days in total did A work till the job got completed.