On a problem of cyclic permutations of integers