Problem:
Score : 100 points

Problem Statement

Snuke is going to open a contest named "AtCoder s Contest".
Here, s is a string of length 1 or greater, where the first character is an uppercase English letter, and the second and subsequent characters are lowercase English letters.

Snuke has decided to abbreviate the name of the contest as "AxC".
Here, x is the uppercase English letter at the beginning of s.

Given the name of the contest, print the abbreviation of the name.

Constraints

The length of s is between 1 and 100, inclusive.

The first character in s is an uppercase English letter.

The second and subsequent characters in s are lowercase English letters.

Input

The input is given from Standard Input in the following format:

AtCoder s Contest

Output

Print the abbreviation of the name of the contest.

Sample Input 1

AtCoder Beginner Contest

Sample Output 1

ABC

The contest in which you are participating now.

Sample Input 2

AtCoder Snuke Contest

Sample Output 2

ASC

This contest does not actually exist.

Sample Input 3

AtCoder X Contest

Sample Output 3

AXC

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Cmondai
{
    class Program
    {
        static void Main(string[] args)
        {
            var str1 = Console.ReadLine().Split(' ');
            var str2 = Console.ReadLine().Split(' ');
           // Console.Write(str2[0]);
           int N = int.Parse(str1[0]);
           int x = int.Parse(str1[1]);
            int[] candybox=new int[N];
            
            for(int i=0;i<N;i++){
                candybox[i] = int.Parse(str2[i]);
            }
            int count=0;
            for (int i = 0; i < N-1; i++)
            {
                
                if (candybox[i] + candybox[i + 1] > x)
                {
                   int amehiku= (candybox[i] + candybox[i + 1])-x;
                   count += amehiku;
                    if(candybox[i+1]-amehiku<0){
                       int amehikuhiku= amehiku - candybox[i+1];
                       candybox[i + 1] = 0;
                       candybox[i] -= amehikuhiku;
                    }
                    else
                    {
                        candybox[i + 1] -= amehiku;
                    }
                    
                }
                if (candybox[i] + candybox[i + 1] <= x)
                {
                    
                }
 
            }
            Console.Write(count);
        }
    }
}