The nationwide lockdown was imposed near the end of March, with residents permitted to leave their homes only for essential services such as buying groceries and medicine.

The travellers -- from Israel, Mexico, Australia and Austria -- were caught taking a walk in Rishikesh, where the Beatles sought spirituality at an Ashram in 1968.

Local police officer Vinod Sharma said they were each made to write "I did not follow the rules of lockdown so I am so sorry" 500 times.

More than 700 foreign tourists from the US, Australia, Mexico and Israel staying in the area had flouted the lockdown rules, Sharma said, adding the unusual punishment was handed out to teach them a lesson.