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