human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Name, Gain, Loss, Long, Avg/G
###Question: When the player gained below 1,405 yards and lost over 390 yards, what's the sum of the long yards?
gpt
SELECT SUM Long FROM table WHERE Loss > 390 AND Gain < 1,405