There are 8 students appearing in an examination of which 3 have to appear in Mathematics paper and the remaining 5 in different subjects. Then, the number of ways they can be made to sit in a row, if the candidates in Mathematics cannot sit next to each other is