A question paper contains 3 parts A, B and C. There are 5 questions in A, 4 in B and 3 in C. At least 3 questions from A, at least 2 from B and at least 1 from C must be attempted. If a student attempts 7 questions satisfying these conditions, the number of ways is