CREATE TABLE table_name_35 (code INTEGER, name VARCHAR(255), regional_county_municipality VARCHAR(255), type VARCHAR(255))
What is the code for Saint-Damien in Matawinie with a type p?
    
SQL: SELECT AVG(code) FROM table_name_35 WHERE regional_county_municipality = "matawinie" AND type = "p" AND name = "saint-damien"