With silly solution, Fortran also failed input reading time limit... only C scored it!
Fortran revised solution for enormous input. In order to pass the time constraint, the entire input was read at once and kept at memory for iteration, instead of iterating while reading and discarding input