Use puts instead of print.