Print elements from for and map