Since there is no randomness here I think this actually is deterministic, so can remove this tag Nondeterministic