Using printf instead of print