Read input from 2 files