print output pattern as well