input: separate code by levels