- The input consists of a few lines, each having space seperated integers followed by a '--------' which acts as a SEPERATOR followed by another set of lines each having space seperated integers
- Each line before the seperator represents the ids of workers in a particular factory
- The ids are numbered starting from 1
- Each line after the seperator represents the ids of the workers capable of completing a particular job