Input

Validates and parses input per specs.