Given input if input proper prints program