res40