Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Which Games have Years at club of 1977, and Goals of 17, and a Debut year smaller than 1977?

### Inputs:
table_name: table, columns: ['Debut year', 'Player', 'Games', 'Goals', 'Years at club']

### Response:
SELECT AVG Games FROM table WHERE Years at club = 1977 AND Goals = 17 AND Debut year < 1977