Seven different lectures are to be delivered in 7 periods of a class on a particular day. Out of 7 lecturers, A,B and C are three of them. If the number of ways in which a routine for the day can be made such that A delivers his lecture before B and B before C is N, then the value of N is