Learning the way of the input