The line length will not exceed 79 characters as the input data will be short enough to accommodate this. Therefore, you do not need to perform length checking of 79+ characters.
_________________________
There are two types of vessels, submarines and targets.