Problem:
Score : 100 points

Problem Statement

Given are two strings S and T consisting of lowercase English letters. Concatenate T and S in this order, without space in between, and print the resulting string.

Constraints

S and T are strings consisting of lowercase English letters.

The lengths of S and T are between 1 and 100 (inclusive).

Input

Input is given from Standard Input in the following format:

S T

Output

Print the resulting string.

Sample Input 1

oder atc

Sample Output 1

atcoder

When S = oder and T = atc, concatenating T and S in this order results in atcoder.

Sample Input 2

humu humu

Sample Output 2

humuhumu

Solution in C# (Mono 4.6.2.0) (judge verdict: Runtime Error)

using System;
using System.Collections.Generic;
using System.Linq;

namespace Handshake
{
    class Program
    {
        static void Main(string[] args)
        {
            var inputStr1 = Console.ReadLine();
            var inputStr2 = Console.ReadLine();
            var inputArray = inputStr2.Split(' ');
            var _N = int.Parse(inputArray[0]);
            var _M = int.Parse(inputArray[1]);
            inputArray = Console.ReadLine().Split(' ');
            var powers = inputArray.Select(x => int.Parse(x)).OrderBy(x => -x).ToList();
            var totalList = new List<int>();
            for(var i = 0; i < _N; i++)
            {
                for (var j = 0; j < _N; j++)
                {
                    var power = powers[i] + powers[j];
                    if(totalList.Count < _M)
                    {
                        totalList.Add(power);
                    }
                    else
                    {
                        var min = totalList.Min();
                        if(min < power)
                        {
                            totalList.Remove(min);
                            totalList.Add(power);
                        }
                        else
                        {
                            break;
                        }
                    }
                }
            }
            Console.WriteLine(totalList.Sum());

        }
    }
}