def rng(i):
  if i == 0:
    return 0
  else:
    return (5*rng(i-1)+1) % 256

print(rng(0))
