Eric has a classic football that is made of 32 pieces of leather: 12 black pentagons and 20 white hexagons. Each pentagon adjoins 5 hexagons and each hexagon adjoins 3 pentagons and 3 hexagons. Eric drew a polygon (i.e. a closed line without intersections) along the edges of the pieces. The polygon divided the ball into two parts and Eric painted one of them green.
He is curious if given a description of the polygon you are able to compute the number of black, white and green pieces?
Task
Write a program that:
reads the description of a polygon,
computes the number of black, white and green pieces,
writes the result.