- The first line consists of three space seperated integers, C, the number of cars, F, the number of features and T, the number of types of cars.
- The next two lines have F space seperated integers each, these two lines together represent the maximum capacity of the stations installing the features.
- For eg. if the two lines are 1 2 and 2 3, then the station installing feature 1 has capacity 1/2 (at most one car in each window of size 2) and the station installing feature 2 has capacity 2/3 (at most 2 cars in each window of size 3)
- The next line has T space seperated integers, each representing the number of cars to be produced of a certain type. Eg. 1 2 3 means we want to produce 1 car of type 1, 2 cars of type 2 and 3 cars of type 3
- There are T lines at the end, one for each type of car (in order) each having F space seperated integers which are either 0/1 each line indicates the features required for a car of a particular type. For eg, 1 0 1  means that this particular type of car has feature 1 and feature 3 