#include<stdio.h>

	int main()
	{
		printf(":%s:\n", "Hello, world!");
		printf(":%15s:\n", "Hello, world!");
		printf(":%.10s:\n", "Hello, world!");
		printf(":%-10s:\n", "Hello, world!");
		printf(":%-15s:\n", "Hello, world!");
		printf(":%.15s:\n", "Hello, world!");
		printf(":%15.10s:\n", "Hello, world!");
		printf(":%-15.10s:\n", "Hello, world!");

          return 0;
	}