Derive marking from punching program, secondary from principal program