On Learning Action Costs from Input Plans