How can i print the same format?