연습문제 3-6 (fix): add NEWLINE for system compatibility