First-order phase transition with global Z3 and Z4 symmetry