Program 1 with fixed output and fixed size allocation