using System;
using System.Collections;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            int X = Convert.ToInt32(Console.ReadLine());
            int Y = Convert.ToInt32(Console.ReadLine());            
            int Z = Convert.ToInt32(Console.ReadLine());    
            string [] SUR = Console.ReadLine().Split(' ');
            string [] CENTRO = Console.ReadLine().Split(' ');
            string [] NORTE = Console.ReadLine().Split(' ');
            ArrayList AMERICA = new ArrayList();
            string aux;
            for (int i=0; i < SUR.Length; i++) {
                AMERICA.Add(SUR[i]);
            }
            for (int i=0; i < CENTRO.Length; i++) {
                AMERICA.Add(CENTRO[i]);
            }
            for (int i=0; i < NORTE.Length; i++) {
                AMERICA.Add(NORTE[i]);
            }
            AMERICA.Sort();
            for (int i=0; i < AMERICA.Count; i++) {
                Console.WriteLine($"{AMERICA[i]}");
            }
        }
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: