Problem:


Score : 200 points

Problem Statement

You are given a string s consisting of lowercase English letters. Extract all the characters in the odd-indexed positions and print the string obtained by concatenating them. Here, the leftmost character is assigned the index 1.

Constraints

Each character in s is a lowercase English letter.

1≤|s|≤10^5

Input

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

s

Output

Print the string obtained by concatenating all the characters in the odd-numbered positions.

Sample Input 1

atcoder

Sample Output 1

acdr

Extract the first character a, the third character c, the fifth character d and the seventh character r to obtain acdr.

Sample Input 2

aaaa

Sample Output 2

aa

Sample Input 3

z

Sample Output 3

z

Sample Input 4

fukuokayamaguchi

Sample Output 4

fkoaaauh



Sample input:
atcoder


Sample output:
acdr

Submission status: Runtime Error

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
import numpy as np

s = input()

i = 0

while i <= len(s):
	print(s[i], end="")
	i += 2

print()

Submission status: Runtime Error

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, gcd
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

s = input()

i = 0

while i <= len(s):
	print(s[i], end="")
	i += 2

print()

Submission status: Runtime Error

Solution code:
s = list(input())
l = len(s)
for i in range(l//2+1):
  a = "".join(s[2*i])
print(a)

Submission status: Runtime Error

Solution code:
s = input()
word = ''
for i in range(len(s)//2+1):
	word += s[2*i]
print(word)

Submission status: Runtime Error

Solution code:
letters = list(input().split())
new_letters = []

for i, item in enumerate(letters, 1)
  if i % 2 != 0:
    new_letters.append(item)
print(''.join(new_letters))

Submission status: Runtime Error

Solution code:
letters = list(input().split())
new_letters = []

for i, item in enumerate(letters, 1)
  if i % 2 != 0
    new_letters.append(item)
print(''.join(new_letters))

Submission status: Runtime Error

Solution code:
s = input()
ans = ""
for i in range(0, len(s), 2):
  ans = ans + i
print(ans)

Submission status: Runtime Error

Solution code:
s = list(input())
for i in range(10**5):
    if i%2==0:
        s[i].replace(s[i],'')
print(s)

Submission status: Runtime Error

Solution code:
Not found

Submission status: Runtime Error

Solution code:
s = input()
print("".join([str(s[2*i+1]) for i in range((len(s)+1)//2)]))

Submission status: Runtime Error

Solution code:
s=input()
k=[]
if len(s)%2==0:
   for i in range(len(s)/2):
       k.append(s[2*i])
else:
    for i in range((len(s)//2)+1):
        k.append(s[2*i])
print("".join(k))

Submission status: Runtime Error

Solution code:
s=list(map(input()))
k=[]
if len(s)%2==0:
   for i in range(len(s)/2):
       k.append(s[2*i])
else:
    for i in range((len(s)//2)+1):
        k.append(s[2*i])
print("".join(k))

Submission status: Runtime Error

Solution code:
s=list(input())
k=[]
if len(s)%2==0:
   for i in range(len(s)/2):
       k.append(s[2*i])
else:
    for i in range((len(s)//2)+1):
        k.append(s[2*i])
print("".join(k))

Submission status: Runtime Error

Solution code:

def ods():
    s = input()
    slist = []
    slist.append(s.split())
    for i in range(0, len(s), 2):
        print(slist[i])

ods()

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().split()]
a.sort()
count = 0
ans = []
for i in range(n):
  for j in range(n-1):
    if j >= i and a[j]-a[i] <= 2:
      #print(i,j)
      count += 1
    else:
      ans.append(count)
      count = 0
if n == 1:
  print(1)
else:
  print(max(ans))

Submission status: Runtime Error

Solution code:
ss = input().strip()
i=0
for s in ss:
  if s%2==0:
    print(s,end="")
  i+=1

Submission status: Runtime Error

Solution code:
s = input()
for i in range(0, n, 2):
  print(s[i], end='')
print()

Submission status: Runtime Error

Solution code:
s = list(input())
out = []

i=0
while s[i]:
  out.append(s[i])
  i +=2

print(out)

Submission status: Runtime Error

Solution code:
s = input()
ans = ""
for i in range(len(s),2):
  ans += s[i]
print(ans)

Submission status: Runtime Error

Solution code:
s = input()
print(''.join([x[2*i+1] for x,i in zip(s, range(0,(len(s)+1)/2))])

Submission status: Runtime Error

Solution code:
s = input()

s_odd = [s[i] for i in range(len(s)) if i%2 == 0]
print("".join(s_odd)

Submission status: Runtime Error

Solution code:
n = input()
ans = ""
for i in range(n):
  if i%2==0:
    ans += n[i]
print(ans)

Submission status: Runtime Error

Solution code:
n = input()
ans = ""
for i in range(n):
  if i%2==1:
    ans += n[i]
print(ans)

Submission status: Runtime Error

Solution code:
s=input()
print(s[::2]

Submission status: Runtime Error

Solution code:
s = str(input())

for i in range(len(s)):
    if i%2 == 0:
        str += s[i]
print(str)

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
s = list(input().rsteip())
S = s[1::2]
print("".join(S))

Submission status: Runtime Error

Solution code:
S = list(input())
print(S)

for v in S[0::2]
    print(v)

Submission status: Runtime Error

Solution code:
s=input()
for i in range(len(s)):
  print(s[2*i],end="")

Submission status: Runtime Error

Solution code:
s = input()
list= []
for i in range(s):
    if i % 2 == 1:
        list += i
print(list)

Submission status: Runtime Error

Solution code:
A = input()
a =[A[i] for i in range(0,len(A)+1,2)]
print(','.join(a).replace(',',''))

Submission status: Runtime Error

Solution code:
s=list(input())
s2=''
for i in range(len(s)):
  if i%==0:
    s2+=s[i]
print(s2)

Submission status: Runtime Error

Solution code:
s=list(input())
s2=""
for i in range(len(s)):
  if i%==0:
    s2+=s[i]
print(s2)

Submission status: Runtime Error

Solution code:
s=list(input())
s2=""
for i in range(len(s)):
  if i%==2:
    s2+=s[i]
print(s2)

Submission status: Runtime Error

Solution code:
s=list(input())
s2=""
for i in range(len(s)):
  if i%==2:
    s2+=a[i]
print(s2)

Submission status: Runtime Error

Solution code:
//ABC072B
#include <bits/stdc++.h>
#include <iostream>
#include <iomanip>
#include <numeric>
#include <math.h>
#include <stdio.h>
#include <climits>
#include <cfloat>
#include <string>
#include <unordered_map>
using namespace std;

int main(){
	string s;
	cin >> s;
	int n = s.size();
	string ans = "";
	int i=0;
	while(i<n){
		ans += s.at(i);
		i += 2;
	}
	cout << ans << endl;
	return 0;
}

Submission status: Runtime Error

Solution code:
S=list(map(str,input().split()))
print(join(S[::2]))

Submission status: Runtime Error

Solution code:
S = input()
n = len(S)
#与えられた文字列をリスト化し分割
lst = list(n)

array = []
for i in range(n):
    array.append(lst[2*i])

new_lst = "".join(array)
print(new_lst)

Submission status: Runtime Error

Solution code:
s=str(input())

for i in range(len(s)):
  if s.index(s[i]) % 2 == 0:
    del s[i]
  else:
    continue
print(s)

Submission status: Runtime Error

Solution code:
s=str(input())

for i in range(len(s)):
  if s.index(s[i]) % 2 == 0:
    del s[i]
print(s)

Submission status: Runtime Error

Solution code:
print(input[::2])

Submission status: Runtime Error

Solution code:
L = index()
print(L[::2])

Submission status: Runtime Error

Solution code:
print(''.join(list(input())[1::2])

Submission status: Runtime Error

Solution code:
s = input()
a = ""
for i in range(len(s+1)//2):
  a += s[2*i]
print(a)

Submission status: Runtime Error

Solution code:
s = input()
for i in len(s):
  if i%2 == 0:
    print(s[i], end = "")

Submission status: Runtime Error

Solution code:
s = input()
for i in len(s):
  if i%2 == 0:
    print(s[i], end = '')

Submission status: Runtime Error

Solution code:
s = input()
t = ''
i = 0
while i <= len(s-1):
  t += s[i]
  i += 2
print(t)

Submission status: Runtime Error

Solution code:
s = input()
t = ''
i = 0
while i <= len(s):
  t += s[i]
  i += 2
print(t)

Submission status: Runtime Error

Solution code:
s = input()
t = ''
while i <= len(s):
  t += s[i]
  i += 2
print(t)

Submission status: Runtime Error

Solution code:
s = input()
t = ''
while i <= len(s):
  t += s[i]
  i += 2
print(s)

Submission status: Runtime Error

Solution code:
s = inptu()
s = list(s)
s_cut = s[0::2]
ans = ""
for i in s_cut:
    ans += i
print(ans)

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <string>
using namespace std;

int main(){
  string s;
  cin >> s;
  int l;
  l = s.length();
  
  string ans = "";
  for(int i=0; i<l; i++){
    if(i%2 == 0) ans += s[i];
  }
  cout << ans;
  return 0;
}

Submission status: Runtime Error

Solution code:
s = str(input())


print(0:len(s):2)

Submission status: Runtime Error

Solution code:
s = str(input())
print(0:len(s):2)

Submission status: Runtime Error

Solution code:
s = input()
N = len(s)
for i in range(N):
  if i%2 ==1:
    s.pop(i)
print(s)

Submission status: Runtime Error

Solution code:
s = input()
cnt = 0
strings = ""
for i in s:
    if cnt % 2 == 0:
        strings.= strings + i
print(strings)

Submission status: Runtime Error

Solution code:
l=input()
w=""
c=1
while len(w)<len(l):
  w+=l[c]
  c+=2
print(w)

Submission status: Runtime Error

Solution code:
# ABC072B - OddString
s = input()
ans = ""
for i in range(0, len(s) + 1, 2):
    ans += s[i]
print(ans)

Submission status: Runtime Error

Solution code:
string = input()
i = 1
ans = "
for s in string:
  if i % 2 != 0:
    ans += s

print(ans)

Submission status: Runtime Error

Solution code:
s = input()
num = len(s)
i = 0
ans = []
while i <= num/2:
    ans[i] = s[2 * i]
ANS = sum(ans)
print(ANS)

Submission status: Runtime Error

Solution code:
li=list(input())
n=1
c=len(li)+n

while n<=c:
  li=li.pop(n)
  n=n+1

print(li)

Submission status: Runtime Error

Solution code:
li=list(input())
n=1
c=len(li)+n

while n<=c:
  
  li=li.pop(n)
  n=n+1

print(a)

Submission status: Runtime Error

Solution code:
S = list(input())
for i in range(S):
  if i % 2 == 0:
    print(S[i], end='')

Submission status: Runtime Error

Solution code:
print(str(input(N))[::2])

Submission status: Runtime Error

Solution code:
atcoder

Submission status: Runtime Error

Solution code:
s = str(input())
odd =[]

n = int(len(s)/2)

for i in range(n+1):
    odd.append(s[2*i])

print(''.join(odd))

Submission status: Runtime Error

Solution code:
#include<iostream>
using namespace std;

int main(){
	string s;
	cin>>s;
	int N=s.size();
	string ans;
	for(int i=0;i<N;i+=2) ans+=s[i];
		//in string, it means odd number
	cout<<ans<<endl;
}

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
S = str(input())
a.[]
for i in range(len(S)):
  if i % 2 == 1:
    a.append(S[i])
print(a.join())

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
s = str(input())
for i in range(len(S) / 2):
  s.pop(2*i - 1)
print(s)

Submission status: Runtime Error

Solution code:
a = list(input())
b = []
for i in range(a):
  if i % 2 == 0:
    b.append(a[i])
print("".join(b))

Submission status: Runtime Error

Solution code:
a = list(input())
b = []
for i in range(a):
  if i % 2 == 0:
    b.push(a[i])
print("".join(b))

Submission status: Runtime Error

Solution code:
a = input()
ar = []
for i in range(len(a)):
  if i % 2 == 0:
    ar.append(i)
print("".join(ar))

Submission status: Runtime Error

Solution code:
s = input()
ans = ""
for i in range(len(s)//2 + 1):
    ans += str(s[2*i])
print(ans)

Submission status: Runtime Error

Solution code:
s = input()
ans = ""
for i in range(len(s),2):
     ans += s[i]
print(ans)

Submission status: Runtime Error

Solution code:
s = input()

ans = ""

for i in range(0,len(s),2)
	ans += s[i]
print(ans)

Submission status: Runtime Error

Solution code:
S = input()

for i in S:
	if i%2>0:
		continue
	print('i')

Submission status: Runtime Error

Solution code:
import math

# input
s = input()

ans = ''

for i in range(math.ceil(len(s) // 2):
    ans = ans + s[2 * i]

print(ans)

Submission status: Runtime Error

Solution code:
# input
s = input()

ans = ''

for i in range(len(s) // 2 + 1):
    ans = ans + s[2 * i]

print(ans)

Submission status: Runtime Error

Solution code:
s = input()
s1 = s[0]
for i in range (len(s)):
    if i%2 == 0 && i > 0:
        s1 += s[i]
print(s1)

Submission status: Runtime Error

Solution code:
s = list(str(input()))
print(t = s[0::2])

Submission status: Runtime Error

Solution code:
s=input()
outp=""
for i in range(len(s),2):
    outp+=s[i]
print(outp)

Submission status: Runtime Error

Solution code:
s=input()
a=""
for i in range(len(s):
    if i%2==0:
        a=a+s[i]
print(a)

Submission status: Runtime Error

Solution code:
l=input()
n=(len(l)+1)//2
for i in range(n):
  odd+=l[2*i]
print(odd)

Submission status: Runtime Error

Solution code:
s = input()
s_add
for i in range(len(s)):
  if i % 2 == 1:
    s_add = s[i]
print(s)

Submission status: Runtime Error

Solution code:
string = ""
for ind in range(len(s)):
    if ind + 1 % 2 = 1:
        string += s[ind]
print string

Submission status: Runtime Error

Solution code:
s = input()
print(''.join([s[i] if i%2 == 1 for i in range(len(s))]))

Submission status: Runtime Error

Solution code:
s = input()
print("".join([s[i] for i in range(0, len(s), 2)))

Submission status: Runtime Error

Solution code:
s=raw_input()
slen=len(s)
count=0
os=""
while count <= slen:
    os=os+s[count]
    count+=2
print(os)

Submission status: Runtime Error

Solution code:
s=raw_input()
slen=len(s)
count=0
os=""
for i in range(int(slen/2)+1):
    os=os+s[count]
    count+=2
print(os)

Submission status: Runtime Error

Solution code:

s=str(input())
x=list(s)
if i in len(x):

Submission status: Runtime Error

Solution code:
input_line1 = raw_input()
c = 1
p = ""
for v in input_line1:
    if c == 1:
        p += v
        c = 0
    else:
        c += 1
print(p)

Submission status: Runtime Error

Solution code:
input_line1 = raw_input()
c = 1
p = ""
for v in input_line1:
    if c == 1:
        p += v
        c = 0
    else:
        c += 1

Submission status: Runtime Error

Solution code:
import sys;
str=sys.argv[1]
r=''
for x in range(0, len(str)):
    if(x%2==0):
        r+=str[x]
print(r)

Submission status: Runtime Error

Solution code:
s = input()
i = 0
out = ''
while i <= len(s):
  out += s[i]
  i += 2
print(out)

Submission status: Runtime Error

Solution code:
s = input()
i = 0
while i <= len(s):
  print(s[i])
  i += 2

Submission status: Runtime Error

Solution code:
ans = ""
for i in range(len(s)):
  if(i % 2 == 0):
    ans = ans + s[i]
print(ans)

Submission status: Runtime Error

Solution code:
s = intpu()
ans = ""
for i in range(len(s)):
  if(i % 2 == 0):
    ans = ans + s[i]
print(ans)