Autodiscover input and output formats