Input
Linear Code
Foreground
Background
Output