zero because on the second time twelve was said it was zero, so on the second time eighteen was said it would also be zero.
For the soldiers to tell which time it is (to confuse the spies) there's have to be a visual cue that the spies cannot overhear.