Fall 2015, problem 1

The numbers $1,2,3,4,5,6,7,8$ are assigned to the vertices of a cube so that each vertex has a different number. Find the probability that no two consecutive numbers are written on vertices with a common edge, where $8$ and $1$ are considered consecutive.