#!/usr/bin/env python

from __future__ import print_function
import sys

screen_width = 50

print('*' * screen_width)

if len(sys.argv) > 1:
    header = ' '.join(sys.argv[1:])
    print('*', header.center(screen_width - 4), '*')
    print('*' * screen_width)

