The teacher got individual sentences of one year per child, totaling nine years in jail, prosecution and defense have agreed, Cadena Ser TV reported.

However, here’s when the tricky law comes to the molester’s rescue: due to the fact that the teacher received individual sentences of one year, and not an entire nine-year sentence, he qualifies for a suspended sentence, according to a reform to the country’s criminal code.

Also, Roberto P.S. doesn’t have any prior convictions, so he could easily spend his term outside the cell.

Following the announcement of the sentence, thousands took to social media, calling the situation “shameful” and “outrageous.”

“The Spanish justice system allows child molesters to walk free in the streets,” the SIMI advocacy group, which supports tougher sentences for child abusers, has written.