at least once a week , and sometimes every day , the nuns punished their bodies with the discipline , a twelve-inch-long whip of thin waxed cord with six knotted tails that brought agonizing pain ; it was used to lash the back , legs , and buttocks .