instruction: What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?
response: SELECT SUM("Grid") FROM table_52883 WHERE "Time/Retired" = 'engine' AND "Driver" = 'teo fabi' AND "Laps" < '39'