Problem:


Score : 100 points

Problem Statement

As a New Year's gift, Dolphin received a string s of length 19.

The string s has the following format: [five lowercase English letters],[seven lowercase English letters],[five lowercase English letters].

Dolphin wants to convert the comma-separated string s into a space-separated string.

Write a program to perform the conversion for him.  

Constraints

The length of s is 19.

The sixth and fourteenth characters in s are ,.

The other characters in s are lowercase English letters.

Input

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

s

Output

Print the string after the conversion.

Sample Input 1

happy,newyear,enjoy

Sample Output 1

happy newyear enjoy

Replace all the commas in happy,newyear,enjoy with spaces to obtain happy newyear enjoy.

Sample Input 2

haiku,atcoder,tasks

Sample Output 2

haiku atcoder tasks

Sample Input 3

abcde,fghihgf,edcba

Sample Output 3

abcde fghihgf edcba



Sample input:
happy,newyear,enjoy


Sample output:
happy newyear enjoy

Submission status: Accepted

Solution code:
import sys

# sys.stdin = open('a1.in')


def read_int_list():
    return list(map(int, input().split()))


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


def main():
    s = read_str()
    l = s.split(',')
    res = ' '.join(l)
    print(res)


main()

Submission status: Accepted

Solution code:
S = raw_input()
S = S.replace(',', ' ')
print(S)

Submission status: Accepted

Solution code:
b = input()
a = list(b)

for i in range(len(b)) :
    if i == 5 or i == 13 :
        print(' ',end ='')
        continue
    print(a[i],end ='')

print()

Submission status: Accepted

Solution code:
a = input()
a = a.replace(',', ' ')
print(a)

Submission status: Accepted

Solution code:
s = raw_input()
print ' '.join(s.split(','))

Submission status: Accepted

Solution code:
a = input()

a = a.replace(","," ")

print(a)

Submission status: Accepted

Solution code:
str=input()
s=str.replace(","," ")
print(s)

Submission status: Accepted

Solution code:
str = input()
str_change = str[:5] + " " + str[6:13] + " " + str[14:19]
print(str_change)

Submission status: Accepted

Solution code:
s = input()
print(s.replace(","," "))

Submission status: Accepted

Solution code:
s = input()
print(s[0]+s[1]+s[2]+s[3]+s[4]+" "+s[6]+s[7]+s[8]+s[9]+s[10]+s[11]+s[12]+" "+s[14]+s[15]+s[16]+s[17]+s[18])

Submission status: Accepted

Solution code:
S=input()
print(S[0]+S[1]+S[2]+S[3]+S[4]+" "+S[6]+S[7]+S[8]+S[9]+S[10]+S[11]+S[12]+" "+S[14]+S[15]+S[16]+S[17]+S[18])

Submission status: Accepted

Solution code:
s = input()
s = s.replace(",", " ")
print (s)

Submission status: Accepted

Solution code:
#coding: shift_jis

s = raw_input()

print s.replace(',',' ')

Submission status: Accepted

Solution code:
s = input()

for item in s:
    if item == ',':
        print(' ', end='')
    else:
        print(item, end='')

Submission status: Accepted

Solution code:
s=str(input())
print( s.replace(",", " ") )

Submission status: Accepted

Solution code:
a = map(str,raw_input().split(","))
#a = raw_input()

print a[0] + " " + a[1] + " " + a[2]

Submission status: Accepted

Solution code:
print raw_input().replace(",", " ")

Submission status: Accepted

Solution code:
a, b, c = map(str, input().split(","))
print(a, b, c)

Submission status: Accepted

Solution code:
S = input()
ans = S[:5]+' '+S[6:13]+' '+S[14:]
print(ans)

Submission status: Accepted

Solution code:
# coding: utf-8


def main():
    data = input().split(',')
    print(data[0], data[1], data[2])


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
INF=10**10

def main():
    
    s=input()
    print(s.replace(","," "))
    
if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
s = input()

res = ''
for i in s:
    if i == ',':
        res += ' '
    else:
        res += i
print(res)

Submission status: Accepted

Solution code:
ans = []
for c in input():
	if c == ',':
		ans.append(' ')
	else:
		ans.append(c)
print("".join(ans))

Submission status: Accepted

Solution code:
data = raw_input()

out = data.replace(",", " ")

print(out)

Submission status: Accepted

Solution code:
#coding:utf-8
import re
print(re.sub(","," ",input()))

Submission status: Accepted

Solution code:
S = input()
print(" ".join(S.split(",")))

Submission status: Accepted

Solution code:
S=raw_input()
print(S.replace(",", " "))

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
print(input().replace(","," "))

Submission status: Accepted

Solution code:
s = input().split(',')
print(*s)

Submission status: Accepted

Solution code:
a,b,c=map(str,raw_input().split(","))
print a+" "+b+" "+c

Submission status: Accepted

Solution code:
S = input()
s = S.replace(","," ")
print(s)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import traceback


def main():
    try:
        s = raw_input().split(',')
        return " ".join(s)

    except:
        traceback.print_exc()
        return 0

print main()

Submission status: Accepted

Solution code:
def slv(string):
    ret = ''
    for i in range(len(string)):
        if string[i] == ',':
            ret += ' '
        else:
            ret += string[i]
    return ret

if __name__ == '__main__':
    s = input()
    print(slv(s))

Submission status: Accepted

Solution code:
n = input().split(",")
print(n[0]+" "+n[1]+" "+n[2])

Submission status: Accepted

Solution code:
l = input().split(",")
s = str(l[0]) + " " + str(l[1]) + " " + str(l[2])

print(s)

Submission status: Accepted

Solution code:
haiku = input()
print(haiku.replace("," , " "))

Submission status: Accepted

Solution code:
if __name__=='__main__':
    input_data = input()
    a1 = input_data.split(",")[0]
    a2 = input_data.split(",")[1]
    a3 = input_data.split(",")[2]
    print("{0} {1} {2}".format(a1,a2,a3))

Submission status: Accepted

Solution code:
# https://abc051.contest.atcoder.jp/submit
s=raw_input()
ss=""

for i in s:
	if i is ',':
		ss+=' '
	else:
		ss+=i
print ss

Submission status: Accepted

Solution code:
#-*- coding:utf-8 -*-
s = str(input())
s = s.rsplit(',')
for i in range(len(s)-1):
    print(s[i], end = ' ')
print(s[len(s)-1])

Submission status: Accepted

Solution code:
#ARC051A

s=raw_input()
t=s.replace(","," ")
print t

Submission status: Accepted

Solution code:
S = input();
S = S.replace(",", " ");
print(S);

Submission status: Accepted

Solution code:
print(input().rstrip().replace(","," "))

Submission status: Accepted

Solution code:
from sys import stdin
print ' '.join(stdin.readline().strip().split(','))

Submission status: Accepted

Solution code:
# coding: utf-8

print(input().replace(',', ' '))

Submission status: Accepted

Solution code:
print " ".join(raw_input().split(","))

Submission status: Accepted

Solution code:
input = input()
answer = input.replace(',',' ')
print(answer)

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return list(map(int, input().split()))
def II(): return int(input())
def LS(): return input().split()
def S(): return input()


def main():
    s = S()

    return s.replace(',', ' ')


print(main())

Submission status: Accepted

Solution code:
S = raw_input()
print S.replace(",", " ")

Submission status: Accepted

Solution code:
s=raw_input().split(",")
print " ".join(s)

Submission status: Accepted

Solution code:
def main():
    print(input().replace(',', ' '))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a=list(map(str,input().split(',')))
print(' '.join(a))

Submission status: Accepted

Solution code:
ss = raw_input().strip().split(',')
out = ''
for i in range(len(ss)):
    out += ss[i]
    if i != len(ss) - 1:
        out += ' '
print out

Submission status: Accepted

Solution code:
#-*-coding = utf-8 -*-

a,b,c = map(str, raw_input().split(","))
print a+ " "+b+" "+c

Submission status: Accepted

Solution code:
S=input()

S2=S[0:5]+' '+S[6:13]+' '+S[14:19]

print (S2)

Submission status: Accepted

Solution code:
s = input()
l = s.split(",")
print(l[0], end=" ")
print(l[1], end=" ")
print(l[2], end="")

Submission status: Accepted

Solution code:
s = input()
s = s.split(',')
print(" ".join(s))

Submission status: Accepted

Solution code:
x = input()
print(x.replace(",", " "))

Submission status: Accepted

Solution code:
s = input()
print(s[0:5], s[6:13], s[14:])

Submission status: Accepted

Solution code:
print ' '.join(raw_input().split(','))

Submission status: Accepted

Solution code:
s = input().split(',')
print(s[0] + " " + s[1] + " " + s[2])

Submission status: Accepted

Solution code:
import re
s = input()

s = s.replace(',',' ')

print(s)

Submission status: Accepted

Solution code:
s=raw_input()
print s.replace(',',' ')

Submission status: Accepted

Solution code:
import string

line = raw_input()
# line = "haiku,atcoder,enjoy"
haiku = line.split(",")

len1 = len(haiku[0])
len2 = len(haiku[1])
len2 = len(haiku[2])

print(haiku[0] + " " + haiku[1] + " " + haiku[2])

Submission status: Accepted

Solution code:
str=input()
print(str.replace(',',' '))

Submission status: Accepted

Solution code:
# coding: utf-8
print(' '.join(input().split(',')))

Submission status: Accepted

Solution code:

c =  input()
s = c.split(",")
s2 = s[0] + " " + s[1] + " " + s[2]
print(s2)

Submission status: Accepted

Solution code:
getword = raw_input()
array_word = list(getword)
# print array_word

for num in range(len(array_word)):
    if array_word[num]==",":
        array_word[num]=" "

ans=""
for str in array_word:
    ans += str

print ans

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# problem A

s = str(input())
s = s.split(",")

print(" ".join(s))

Submission status: Accepted

Solution code:


S = input()

S = S.replace(","," ")



print(S)

Submission status: Accepted

Solution code:
#001
a = raw_input()
a=a.replace(',',' ')
print(a)

Submission status: Accepted

Solution code:
s=input().split(',')
print(' '.join(s))

Submission status: Accepted

Solution code:
import sys
s=sys.stdin.readline()
print(s[:5]+' '+s[6:13]+' '+s[14:])

Submission status: Accepted

Solution code:
S = list(input().split(','))
print(' '.join(S))

Submission status: Accepted

Solution code:
import sys

s=raw_input()

ss=s.replace(',',' ',2)

print ss

Submission status: Accepted

Solution code:
s = input().split(',')
ws = ' '
print(ws.join(s))

Submission status: Accepted

Solution code:
#input
S =''
S = raw_input()

dst1 = S.replace(',',' ')
dst2 = dst1.replace(',',' ')

print dst2

Submission status: Accepted

Solution code:
input_array = list(map(str, input().split(",")))

for msg in input_array:
    print(msg, end=" ")

Submission status: Accepted

Solution code:
s=input()
c=s[0:5]+" "+s[6:13]+" "+s[14:19]
print(c)

Submission status: Accepted

Solution code:
s = str(input())
s = s[:5] + " " + s[6:13] + " " + s[14:]
print(s)

Submission status: Accepted

Solution code:
s = input().replace(',', ' ')
print (s)

Submission status: Accepted

Solution code:
#! -*- coding: UTF-8 -*-

s = input()
print(" ".join(s.strip().split(",")))

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

l = input().split()
s = list(l[0])
# print(s)
s[5] = " "
s[13] = " "
print("".join(s))

Submission status: Accepted

Solution code:
#!/usr/bin/python

import sys

def main(argv):
    for line in sys.stdin:
        print line.rstrip("\n").replace(",", " ")

if __name__ == "__main__":
    main(sys.argv)

Submission status: Accepted

Solution code:
s = input().split(",")
print(s[0] + " " + s[1] + " " + s[2] )

Submission status: Accepted

Solution code:
s = input()
a = " ".join(s.split(","))
print(a)

Submission status: Accepted

Solution code:
S = input()
print('{} {} {}'.format(S[:5], S[6:13], S[14:]))

Submission status: Accepted

Solution code:
s = input()
print(s.replace(',',' ',3))

Submission status: Accepted

Solution code:
from sys import stdin

s = stdin.readline().strip()
print(s.replace(',', ' '))

Submission status: Accepted

Solution code:
s = input()
print(" ".join(s.split(",")))

Submission status: Accepted

Solution code:
S = input().split(",")
for i in range(3):
   print(S[i])

Submission status: Accepted

Solution code:
a = list(input())

for i in a:
    if i == ',':
        print(" ", end = "")
    else:
        print(i, end = "")

print()

Submission status: Accepted

Solution code:
S = input()
s1 = S[:5]
s2 = S[6:13]
s3 = S[14:]
print(s1+" "+s2+" "+s3)

Submission status: Accepted

Solution code:
s = list(input().rstrip())
s[5] = s[13] = ' '
print(''.join(s))

Submission status: Accepted

Solution code:
def main():
    s = input().split(',')
    s = ' '.join(s)
    print(s)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n=input()
n=n.replace(',',' ')
print(n)

Submission status: Accepted

Solution code:

s = input().split(",")

print(*s)

Submission status: Accepted

Solution code:
a, b, c = input().split(",")
print(a + " " + b + " " + c)

Submission status: Accepted

Solution code:
line = input()

print(line.replace(",", " "))

Submission status: Accepted

Solution code:
s=raw_input().replace(","," ")
print(s)

Submission status: Accepted

Solution code:
a = raw_input().split(',')
print " ".join(a)

Submission status: Accepted

Solution code:
s = raw_input()
print s.replace(",", " ")

Submission status: Accepted

Solution code:
# coding=utf-8

import sys
stdin = sys.stdin
def na(): return map(int, stdin.readline().split())
def ns(): return stdin.readline().strip()

def main():
    print(ns().replace(",", " "))
    pass


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
a, b, c = input().split(,)
print(a, b, c)

Submission status: Runtime Error

Solution code:
x, y ,z = input().split(,)
print(x, y, z)

Submission status: Runtime Error

Solution code:
    string = input()

    ans = string.replace(',', ' ')
    print(ans)

Submission status: Runtime Error

Solution code:
K,S = map(int,input().split())


count = 0
for i in range(K+1):
    for j in range(K+1):
        if 0 <= S-(i+j) <= K:
            count += 1
print(count)

Submission status: Runtime Error

Solution code:
K,S = map(int,input().split())


count = 0
for i in range(K+1):
    for j in range(K+1):
        if 0 <= S-(i+j) <= N:
            count += 1
print(count)

Submission status: Runtime Error

Solution code:
A, B, C = input().split()
print(A, B, C)

Submission status: Runtime Error

Solution code:
s=input()
print(s.split(,))

Submission status: Runtime Error

Solution code:
x,y,z = map(int,input().split())
print(z,x,y)

Submission status: Runtime Error

Solution code:
K,S = map(int,input().split())
count = 0
for x in range(K+1):
    r = S - x
    if (x <= S and r <= K * 2):
        t = (r + 1) - max(0,r - K) * 2
        count += t
print(count)

Submission status: Runtime Error

Solution code:
pritn(input().replace(',', ' '))

Submission status: Runtime Error

Solution code:
x = input()
x[5]=" "
x[13]=" "

Submission status: Runtime Error

Solution code:
x, y, z = map(input().split(,))
print(x y z)

Submission status: Runtime Error

Solution code:
K,S = map(int,input().split())

ans = 0

for x in range(K+1):
    for y in range(x,K+1):
        N = S - x -y
        if 0<= N <= K:
            ans +=1

print(ans)

Submission status: Runtime Error

Solution code:
print(*list[input().split(",")])

Submission status: Runtime Error

Solution code:
x,y,z = int().split(',')
print(x,y,z)

Submission status: Runtime Error

Solution code:
a, b, c = input().split(",")

print(a b c)

Submission status: Runtime Error

Solution code:
x, y, z = input().split
print(x, y, z)

Submission status: Runtime Error

Solution code:
s = map(str,input().split(,))
print(s)

Submission status: Runtime Error

Solution code:
print(input().replace(",", " ")

Submission status: Runtime Error

Solution code:
s=input()

s[5]=' '
s[13]=' '

print(s)

Submission status: Runtime Error

Solution code:
x, y, z = input.split(",")

print(x, y, z)

Submission status: Runtime Error

Solution code:
a = input()
k, s = a.split(' ')
K = int(k)
S = int(s)
ans = 0
for x in range(K + 1):
    for y in range(K + 1):
        for z in range(K + 1):
            if (x + y + z) == S:
                ans += 1

print(ans)

Submission status: Runtime Error

Solution code:
k,s = map(int,input().split())
ans = 0
for x in range(k+1):
    for y in range(k+1):
        z = s-(x+y)
        if z > 0 and z<=k:
            ans += 1 
print(ans)

Submission status: Runtime Error

Solution code:
s = input()
return ' '.join(s.split(','))

Submission status: Runtime Error

Solution code:
return ' '.join(s.split(','))

Submission status: Runtime Error

Solution code:
import sys

k,s = map(int,sys.stdin.readline().split(' '))

result = 0

for x in range(k+1):
    for y in range(min(s-x+1,k+1)):
        if (s-x-y)<=k:
            result+=1
        
print(result)

Submission status: Runtime Error

Solution code:
#入力
input = input()

#リスト化
exec('lst = [' + input + ']')

#出力
print(lst[0], lst[1], lst[2], sep=' ')

Submission status: Runtime Error

Solution code:
s=input()
print(s.replace(",", " ")

Submission status: Runtime Error

Solution code:
s=input()
print(s.replace("," " ")

Submission status: Runtime Error

Solution code:
a,b,c=input(),split(",")
print(a,b,c)

Submission status: Runtime Error

Solution code:
k,s=map(int,input().split())
ans=0
for x in range(k+1):
    for y in range(k+1):
        if 0<=s-x-y<=k:
            ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
print(*input().sep(","))

Submission status: Runtime Error

Solution code:
print(*input().split(,))

Submission status: Runtime Error

Solution code:
import sys
K,S = map(int,input().split())
if K < 2 or K > 2500:
  sys.exit()

X = 0
count = 0
while X <= K:
  Y = 0
  while Y <= K:
    Z = S - X - Y
    if Z <= K and Z >= 0:
      count += 1
    Y += 1
  X += 1
print(count)

Submission status: Runtime Error

Solution code:
import sys
K,S = map(int,input().split())
if K < 2 or K > 2500:
  sys.exit()
if X > K or Y > K or Z > K:
  sys.exit()

X = 0
count = 0
while X <= K:
  Y = 0
  while Y <= K:
    Z = 0
    while Z <= K:
      if X + Y + Z == S:
        count += 1
      Z += 1
    Y += 1
  X += 1
print(count)

Submission status: Runtime Error

Solution code:
import sys
import res
#X = list(map(str,input().split()))
X = str(input())
print(re.sub(',',' ',X))

Submission status: Runtime Error

Solution code:
haiku,atcoder,tasks

Submission status: Runtime Error

Solution code:
sx,sy,tx,ty = map(int,input().split())
ans = ["U"]*(ty-sy) + ["R"]*(tx-sx) + ["D"]*(ty-sy) + ["L"]*(tx-sx+1) + ["U"]*(ty-sy+1) + ["R"]*(tx-sx+1) + ["D"] + ["R"] + ["D"]*(ty-sy+1) + ["L"]*(tx-sx+1) + ["U"]
print("".join(ans))

Submission status: Runtime Error

Solution code:
k,s = map(int,input().split())
f = 0
for i in range(k+1):
    for j in range(k+1):
        l = s-i-j
        if 0 <= l <=k:
            f+=1
print(f)

Submission status: Runtime Error

Solution code:
s=input()
resutl=''
for i in s:
    if i==',':
        result+=' '
    else:
        result+=i
print(result)

Submission status: Runtime Error

Solution code:
k, s = map(int, input().split())
ans = 0

for x in range(k+1):
    for y in range(k+1):
        for z in range(k+1):
            if s == x + y + z:
                ans += 1
            else:
                pass

print(ans)

Submission status: Runtime Error

Solution code:
k, s = map(int, input().split())
ans = 0

for x in range(k+1):
  for y in range(k+1):
    for z in range(k+1):
      if s == x + y + z:
        ans += 1
      else:
        pass

print(ans)

Submission status: Runtime Error

Solution code:
a,b,c = input().split(',')
print(a + '' + B + '' + C)

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
 
K,S=map(int,input().split())
if 2<=K<=2500:
  if 0<=S<=3*K:
    count=0
    for x in range(K+1):
        for y in range(K+1):
            for z in range(K+1):
                if z==S-x-y: count+=1
print(count)

Submission status: Runtime Error

Solution code:
K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
    Ks=[]
    wa=[]
    for i in range(K+1):
        Ks.append(i)
    X,Y,Z =Ks,Ks,Ks
    for x in X:
        if x<=S:
            X_=[]
            X_.append(x)
            for y in Y:
                if y<=S:
                    X_Y_=[]
                    X_Y_=list(X_)
                    X_Y_.append(y)
                    for z in Z:
                        if z<=S:
                            X_Y_Z_=list(X_Y_)
                            X_Y_Z_.append(z) 
                            wa_=sum(X_Y_Z_)
                            wa.append(wa_)
    for j in wa:
        if j==S:
            count+=1
    print(count)

Submission status: Runtime Error

Solution code:
K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
    count=0
    Ks=[]
    wa=[]
    for i in range(K+1):
        Ks.append(i)
    X,Y,Z =Ks,Ks,Ks
    for x in X:
        X_=[]
        X_.append(x)
        for y in Y:
            X_Y_=[]
            X_Y_=X_.copy()
            X_Y_.append(y)
            for z in Z:
                X_Y_Z_=X_Y_.copy()
                X_Y_Z_.append(z) 
                wa_=sum(X_Y_Z_)
                wa.append(wa_)
    for j in wa:
        if j==S:
            count+=1
    print(count)

Submission status: Runtime Error

Solution code:
K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
    count=0
    Ks=[]
    wa=[]
    for i in range(K+1):
        Ks.append(i)
    X,Y,Z =Ks,Ks,Ks
    for x in X:
        X_=[]
        X_.append(x)
        for y in Y:
            X_Y_=[]
            X_Y_=X_.copy()
            X_Y_.append(y)
            for z in Z:
                X_Y_Z_=X_Y_.copy()
                X_Y_Z_.append(z) 
                wa_=sum(X_Y_Z_)
                wa.append(wa_)
    print(len([c for c in wa if c==S]))

Submission status: Runtime Error

Solution code:
K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
    count=0
    Ks=[]
    wa=[]
    for i in range(K+1):
        Ks.append(i)
    X,Y,Z =Ks,Ks,Ks
    for x in X:
        X_=[]
        X_.append(x)
        for y in Y:
            X_Y_=[]
            X_Y_=X_.copy()
            X_Y_.append(y)
            for z in Z:
                X_Y_Z_=X_Y_.copy() 
                X_Y_Z_.append(z)
                wa_=sum(X_Y_Z_)
                wa.append(wa_)
    for j in wa:
        if j==S:
            count+=1
    print(count)

Submission status: Runtime Error

Solution code:
K,S=map(int,input().split())
if 2<=K<=2500 and 0<=S<=3*K:
    count=0
    Ks=[]
    wa=[]
    for i in range(K+1):
        Ks.append(i)
    X,Y,Z =Ks,Ks,Ks
    for x in X:
        X_=[]
        X_.append(x)
        for y in Y:
            X_Y_=[]
            X_Y_=X_.copy()
            X_Y_.append(y)
            for z in Z:
                X_Y_Z_=[]
                X_Y_Z_=X_Y_.copy() 
                X_Y_Z_.append(z)
                wa_=sum(X_Y_Z_)
                wa.append(wa_)
    for j in wa:
        if j==S:
            count+=1
    print(count)

Submission status: Runtime Error

Solution code:
s_in = input()
s_out = s.replace(",", " ", 2)
print(s_out)

Submission status: Runtime Error

Solution code:
a,b.c = input().split(",")
print(a,b,c)

Submission status: Runtime Error

Solution code:
k, s = map(int, input().split())

idx = 0


for x in range(k+1):
    for y in range(k+1):
        if 0 <= s - x - y <= k:
            idx += 1

print(idx)

Submission status: Runtime Error

Solution code:
print(' '.join(input().split(','))

Submission status: Runtime Error

Solution code:
s =input()
print(s[:5]+" "+s[6:13]+" "+s[14:]

Submission status: Runtime Error

Solution code:
a, b, c=map(int, input().split(','))
print(a, b, c)

Submission status: Runtime Error

Solution code:
a,b,c = input().split()
print(a+" "+b+" "+c)

Submission status: Runtime Error

Solution code:
a,b,c = input().split()
print(a,b,c)

Submission status: Runtime Error

Solution code:
s=str(input())
for i in s:
    if s[i]==",":
        s=s[:i]+" "+s[i+1:]
print(s)

Submission status: Runtime Error

Solution code:
k,s = map(int,input().split())

ans = 0

for x in range(k+1):
    for y in range(k+1):
        for z in range(k+1):
            if x+y+z ==s:
                ans +=1

print(ans)

Submission status: Runtime Error

Solution code:
A,B,C =map(str, input().split(,))
print(A,B,C)

Submission status: Runtime Error

Solution code:
s=input(),sep","
print(s)

Submission status: Runtime Error

Solution code:
K, S = map(int, input().split())
 
cnt = 0
for i in range(K+1):
    for j in range(K+1):
        k = S - i - j
        if k >= 0 and k <= K:
            cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
a, b, c = map(input().split(,))
print(a, b, c)

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
K,S=map(int,input().split())
z=list(range(K+1))
ans=[]
for i in z:
  s_z=S-i
  if s_z<0:
    pass
  elif K<s_z:
    if (K+1)>(s_z-K):
      ans.append(2*K-s_z+1)
  else:
    ans.append(s_z+1)
print(sum(ans))

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
 
K,S=map(int,input().split())
 
z = list(range(K+1))
ans = [None]*(K+1)
 
for i in z:
  s_z = S - i
  if s_z < 0:
    ans[i] = 0
  elif K < s_z:
    if (K + 1) > (s_z - K):
      ans[i] = 2*K - s_z + 1
  else:
    ans[i] = s_z + 1
 
print(sum(ans))

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
 
K,S=map(int,input().split())
 
z = list(range(K+1))
ans = []
 
for i in z:
  s_z = S - i
  if s_z < 0:
    pass
  elif K < s_z:
    if (K + 1) > (s_z - K):
      ans[i] = 2*K - s_z + 1
  else:
    ans[i] = s_z + 1
 
print(sum(ans))

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
 
K,S=map(int,input().split())
 
z = list(range(K+1))
ans = []
 
for i in z:
  s_z = S - i
  if s_z < 0:
    pass
  elif K < s_z:
    if (K + 1) > (s_z - K):
      ans.append(K + 1 - (s_z - K))
  else:
    ans.append(s_z + 1)
 
print(sum(ans))

Submission status: Runtime Error

Solution code:
k, s = list(map(int, input().split()))
num = 0

for x in range(k+1):
  for y in range(k+1):
    if s-k <= x+y <= s:
      num += 1

print(num)

Submission status: Runtime Error

Solution code:
s=input()
a=list(input.split(","))
print(*a)

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
 
def main():
    K,S = [int(x) for x in input().split()]
 
    count = 0
 
    for x in range(K+1):
        for y in range(K+1):
            z = S - (x + y)
            if z >= 0 and z <= K:
                count += 1
 
    print(count)
 
if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
limit, sum_xyz = map(int, input().split())

pair = list()
x_bottom = sum_xyz - 2*limit
if x_bottom < 0:
    x_bottom = 0
else:
    x_bottom = x_bottom

for i in range(limit, x_bottom - 1, -1):
    x = i
    y_limit = 0
    if sum_xyz - x >= limit:
        y_limit = limit
    else:
        y_limit = sum_xyz - x
    y_bottom = sum_xyz - x - limit
    if y_bottom < 0:
        y_bottom = 0
    else:
        y_bottom = y_bottom

    for j in range(y_limit, y_bottom - 1, -1):
        y = j
        z = sum_xyz - x - y
        pair.append([x, y, z])
ans = len(pair)

print(ans)

Submission status: Runtime Error

Solution code:
limit, sum_xyz = map(int, input().split())

pair = list()
x_bottom = sum_xyz - 2*limit
x_bottom = 0 if x_bottom < 0 else x_bottom

for i in range(limit, x_bottom - 1, -1):
    x = i
    y_limit = 0
    if sum_xyz - x >= limit:
        y_limit = limit
    else:
        y_limit = sum_xyz - x
    y_bottom = sum_xyz - x - limit
    y_bottom = 0 if y_bottom < 0 else y_bottom

    for j in range(y_limit, y_bottom - 1, -1):
        y = j
        z = sum_xyz - x - y
        pair.append([x, y, z])
ans = len(pair)

print(ans)

Submission status: Runtime Error

Solution code:
limit, sum_xyz = map(int, input().split())

pair = list()
x_bottom = sum_xyz - 2*limit
x_bottom = 0 if x_bottom < 0 else x_bottom

for i in range(limit, x_bottom - 1, -1):
    x = i
    y_limit = 0
    if sum_xyz - x >= limit:
        y_limit = limit
    else:
        y_limit = sum_xyz - x
    y_bottom = sum_xyz - x - limit
    y_bottom = 0 if y_bottom < 0 else y_bottom

    for j in range(y_limit, y_bottom - 1, -1):
        y = j
        z = sum_xyz - x - y
        pair.append([x, y, z])

print(len(pair))

Submission status: Runtime Error

Solution code:
s = input()
print(s.split(',')

Submission status: Runtime Error

Solution code:
K,S = map(int, input().split())
n = 0
for i in range(K+1):
    for j in range(K+1):
        for k in range(K+1):
            if i+j+k ==S:
                n=n+1
            else:
                n =n

print(n)

Submission status: Runtime Error

Solution code:
a,b,c=input().split()
print(a+" "+b+" "+c)

Submission status: Runtime Error

Solution code:
k,s = map(int,input().split())
ans = 0

for x in range(min(k,s)+1):
    for y in range(min(k,s)+1):
        if 0 <= s - x - y <= min(k,s):
            ans += 1
    
print(ans)

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

#define int long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, n) for (int i = 1; i <= (n); i++)
#define all(x) begin(x), end(x)
#define uniq(x) (x).erase(unique(all(x)), end(x))
#define bit(n) (1LL << (n))
#define cdiv(a, b) (((a) - 1) / (b) + 1)
#define dump(x) cerr << #x " = " << (x) << endl
using vint = vector<int>;
using vvint = vector<vint>;
using pint = pair<int, int>;
using vpint = vector<pint>;
template<typename T> using priority_queue_rev = priority_queue<T, vector<T>, greater<T>>;
constexpr long double PI = 3.1415926535897932384626433832795028L;
constexpr int DY[8] = {0, 1, 0, -1, 1, 1, -1, -1};
constexpr int DX[8] = {1, 0, -1, 0, 1, -1, -1, 1};
int gcd(int a, int b) {
    while (b) { swap(a %= b, b); }
    return a;
}
int lcm(int a, int b) { return a / gcd(a, b) * b; }
template<typename T> void fin(T mes) {
    cout << mes << endl;
    exit(0);
}
template<typename T, typename U> bool chmax(T &a, const U &b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
template<typename T, typename U> bool chmin(T &a, const U &b) {
    if (b < a) {
        a = b;
        return true;
    }
    return false;
}
template<typename T, typename U> ostream &operator<<(ostream &os, const pair<T, U> &rhs) {
    os << "(" << rhs.first << ", " << rhs.second << ")";
    return os;
}
template<typename T> ostream &operator<<(ostream &os, const vector<T> &rhs) {
    os << "{";
    for (auto itr = rhs.begin(); itr != rhs.end(); itr++) {
        os << *itr << (next(itr) != rhs.end() ? ", " : "");
    }
    os << "}";
    return os;
}
struct setup {
    static constexpr int PREC = 20;
    setup() {
        cout << fixed << setprecision(PREC);
        cerr << fixed << setprecision(PREC);
    };
} setup;

string s;
signed main() {
    cin >> s;
    s[5] = s[13] = ' ';
    cout << s << endl;
}

Submission status: Runtime Error

Solution code:
a,b,c = map(str(input().split(",")))
print(a,b,c)

Submission status: Runtime Error

Solution code:
a, b, c = input.split(",")
print(a, b, c)

Submission status: Runtime Error

Solution code:
k, s = map(int, input().split())

cnt = 0

for i in range(k+1):
	for j in range(k+1):
		z = s - (i+j)
		if z >= 0 and z <= k:
			cnt += 1
print (cnt)

Submission status: Runtime Error

Solution code:
s=input.split(",")
print(*s)

Submission status: Runtime Error

Solution code:
s=list(input.split(","))
print(*s)