In the village of Much-Pedaling-in-the-Marsh, one third of the children can swim, two thirds can ride a bicycle, and one seventh can both swim and ride a bicycle (though not necessarily at the same time). Given that there are fewer than 40 children in Much-Pedaling-in-the-Marsh, how many of them can niether swim nor ride a bicycle?