input left and right