Load the input and get the maximum indices