def f(): var x, n, r while x < n: r = ber(1,2) x = x + r tick 1