Calculate the values of counters after applying all alternating operations: increase counter by 1; set value of all counters to current maximum.