4-3: Optimize map printing