Critical behaviour of the discrete spin cubic model