static void Main()
        {
            GameData gameData = ReadInputLines();

            for (int j = 0; j <= gameData.Turns; j++)
            {
                var currentCoordinates = new SpaceObject
                {
                    X = gameData.Spaceship.X,
                    Y = gameData.Spaceship.Y
                };

                bool inSpace = true;

                foreach (var star in gameData.Stars)
                {
                    if (star.X - 1 <= currentCoordinates.X &&
                        currentCoordinates.X <= star.X + 1 &&
                        star.Y - 1 <= currentCoordinates.Y &&
                        currentCoordinates.Y <= star.Y + 1)
                    {
                        inSpace = false;
                        Console.WriteLine(star.Name);

                        break;
                    }
                }

                if (inSpace)
                {
                    Console.WriteLine("space");
                }

                gameData.Spaceship.Y += 1;
            }
        }
        static GameData ReadInputLines()
        {
            var gameData = new GameData();

            var stars = new SpaceObject[3];

            for (int i = 0; i < 3; i++)
            {
                string[] data = Console
                    .ReadLine()
                    .Split(' ');

                stars[i] = new SpaceObject
                {
                    Name = data[0].ToLower(),
                    X = float.Parse(data[1]),
                    Y = float.Parse(data[2])
                };
            }

            gameData.Stars = stars;

            string[] normandyData = Console
                .ReadLine()
                .Split(' ');

            gameData.Spaceship = new SpaceObject()
            {
                Name = "normandy",
                X = float.Parse(normandyData[0]),
                Y = float.Parse(normandyData[1])
            };

            gameData.Turns = int.Parse(Console.ReadLine());

            return gameData;
        }