Automatic Input Control Design