Hawaii Five-0 fans will get in on the action when they get the chance to choose the ending of an upcoming episode.

The January 14 episode of Hawaii Five-0 will have three culprits that viewers will be able to vote for, reports The Huffington Post. East Coast/Central and West Coast broadcasts will all get their own endings, depending on their viewers' votes.

"I've always felt the most fun aspect of watching a mystery is trying to figure out 'whodunit.' Now the Hawaii Five-0 viewers will actually get the chance to tell us who they think committed the crime and we will listen. I love that our dedicated and attentive fans will actually play a part in resolving our story," said executive producer Peter Lenkov.

According to CBS News,the episode is about the investigation into the death of an O'ahu State University professor. The suspects include his boss, a teaching assistant, and a student who was caught cheating. Viewers will be able to vote on CBS.com and Twitter using the hashtags #theBoss, #theTA and #theStudent.

The votes will be tallied immediately and the most popular ending will then air. CBS also revealed that this kind of episode is the first of its kind in television history. All three endings will be available to watch on CBS.com after the East and West Coast broadcasts.

Check out the preview for the episode below.