Given three integers a,b and c. Find the n-th term which is divisible by either of a,b or c.
Four integers a,b,c and n (a,b,c,n≤109).
Print the n-th term divisible by either a or b or c. It is known that the answer is no more than 109.