A rectangular room has length 8 m, width 5 m, and height 4 m. There are two doors, each measuring 2m by 1 m, and one window measuring 2m by 1.5 m on the walls. If the cost of painting the walls is ₹40 per square meter, what is the total cost to paint the four walls, excluding the areas of the doors and window?