﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _02.Knights_of_Honor
{
    public class KnightsOfHonor
    {
        public static void Main()
        {
            var line = Console.ReadLine().Split(new[] {' '}, StringSplitOptions.RemoveEmptyEntries);

            Action<string[]> print = PrintName;

            print(line);
        }

        private static void PrintName(string[] line)
        {
            foreach (var name in line)
            {
                Console.WriteLine($"Sir {name}");
            }
        }
    }
}
