Convicted mobster Whitey Bulger had some unexpected advice for three Massachusetts teens.

Bulger, who is serving two life sentences after spending 16 years on the run, told Apponequet Regional High School students that crime just doesn’t pay.

“Advice is a cheap commodity some seek it from me about crime — I know only one thing for sure — If you want to make crime pay — ‘Go to Law School,’” Bulger wrote in a letter sent from prison.

Students Brittany Tainsh, Michaela Arguin and Mollykate Rodenbush wrote to Bulger as part of their National History Day project on leadership and legacy.

They told The Boston Globe that they chose the mobster for the project because they thought the organized crime leader would set them apart from the many students who chose to focus on presidents and heroes.

Bulger, who was convicted of racketeering and murder, sounded remorseful in the surprising letter.

“My life was wasted and spent foolishly, brought shame + suffering on my parents and siblings and will end soon,” he wrote.

The teens won first place in their district’s competition but did not place in the state competition.

Still, social studies teacher Robert Powers, who oversees entries into the competition, said the girls’ project was a success.

“They have contributed to our historical understanding of Whitey Bulger, and to me, that’s what this program is all about,” he told The Boston Globe.

Whitey Bulger, Former Partner Trade F-Bombs During Trial

VERDICT: "Whitey" Bulger Guilty of Racketeering, Conspiracy