fork(5) download
  1. t={1}
  2. exec'm=min(t);t=t-{m}|{2*m+1,3*m-1};'*input()
  3. print m
Success #stdin #stdout 0.02s 9080KB
stdin
55
stdout
255