Learning to Manipulate Values