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



Sample input:
AtCoder Beginner Contest


Sample output:
ABC

Submission status: Runtime Error

Solution code:
N, x = map(int, input().split())
a = input().split()
count = 0
for i in range(len(a)):
      a[i] = int(a[i])
      if a[i] > x:
            count = count + a[i] - x
            a[i] = x
      else:
            a[i] = a[i]
for i in range(len(a)-1):  
      if i%2 == 0:
            if a[i] + a[i + 1] > x:
                  count = count + a[i] + a[i + 1] - x
                  a[i+1] = x - a[i]
      else:
            if a[i] + a[i + 1] > x:
                  count = count + a[i] + a[i + 1] - x
                  a[i] = x - a[i + 1]
print(count)

Submission status: Runtime Error

Solution code:
N, x = map(int, input().split())
a = input().split()
count = 0
for i in range(len(a)):
      a[i] = int(a[i])
      if a[i] > x:
            count = count + a[i] - x
            a[i] = x
      else:
            a[i] = a[i]
for i in range(len(a)-1):  
      if i%2 == 0:
            if a[i] + a[i + 1] > x:
                  count = count + a[i] + a[i + 1] - x
                  a[i+1] = x - a[i]
      else:
            if a[i] + a[i + 1] > x:
                  count = count + a[i] + a[i + 1] - x
                  a[i] = x - a[i + 1]
print(count)

Submission status: Runtime Error

Solution code:
a, b, x = map(int, input().split())

c = b//x
d = (a-1)// x

ans = c-d
print(ans)

Submission status: Runtime Error

Solution code:
st = input().split()
N = int(st[0])
x = int(st[1])
A = input().split()
a = []
for i in range(N):
     a.append(int(A[i]))   
a.append(0)
a.append(0)
ret = 0
for i in range(N):
    if a[i] + a[i + 1] > x :
        d1 = max((a[i] + a[i + 1]) - x,0)
        ret +=  min(a[i+1],d1)
        a[i+1] -=  min(a[i+1],d1)
        d1 = max((a[i] + a[i + 1]) - x,0)
        ret +=  min(a[i],d1)
        a[i] -=  min(a[i],d1)
print(ret)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*- 
args = sys.argv
st = args[1]
at = 'A'+st[0]+'C'
print at

Submission status: Runtime Error

Solution code:
args = sys.argv
st = args[1]
print 'A'+st[0]+'C'

Submission status: Runtime Error

Solution code:
args = sys.argv
print "A" + args[1][0] + "C"

Submission status: Runtime Error

Solution code:
# coding: utf-8
a,b,x = tuple(map(int, input().split()))
print(b//x - (a-1)//x)

Submission status: Runtime Error

Solution code:
# coding: utf-8
a,b,x = map(int, input().split())
print(b//x - (a-1)//x)

Submission status: Runtime Error

Solution code:
import math;
a,b,x = map(long, raw_input().split());
if(a%x == 0):
    a-=1;
A = long(math.ceil(a/x));
B = long(b//x);
print(B-A);