grain in input