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: Runtime Error

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

result = 0
for X in range(K+1):
    for Y in range(K+1):
        Z = S-X-Y
        if Z<0:
            continue
        elif K<Z:
            continue
        elif S == X+Y+Z:
            result += 1
print(result)

Submission status: Runtime Error

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

a = 0
for i in range(K + 1):
    r = S - i
    if i <= S and r <= K * 2:
        t = (r + 1) - max(0, r - K) * 2
        a += t

print(a)

Submission status: Runtime Error

Solution code:
K, S = list(map(int, input('').split()))
count = 0
for x in range(K+1):
  for y in range(K+1):
    if S <= x + y + K and x + y <= S:
      count += 1
print(count)

Submission status: Runtime Error

Solution code:
K, S = list(map(int, input('').split()))
count = 0
for x in range(K+1):
  for y in range(K+1):
    if S<= x + y + K and x + y <= S:
      count += 1
print(count)

Submission status: Runtime Error

Solution code:
K, S = list(map(int, input('').split()))
count = 0
for x in range(K+1):
  for y in range(K+1):
    if x + y <= S:
      count += 1
print(count)

Submission status: Runtime Error

Solution code:
def check(x, y, K, S):
  if x + y > S:
    return False
  for z in range(K+1):
    if x + y + z == S:
      return True
  return False

K, S = list(map(int, input('').split()))
count = 0
for x in range(K+1):
  for y in range(K+1):
    if check(x, y, K, S):
      count += 1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        AtCoder solver = new AtCoder();
        solver.solve(1, in, out);
        out.close();
    }

    static class AtCoder {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            String str = in.next();
            String[] haiku = str.split(",");

            for (int i = 0; i < haiku.length; i++) {
                out.print(haiku[i]);
                if (i != haiku.length - 1) out.print(" ");
                else out.println();
            }
        }
    }
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
l = input()
for i in range(0, 5)
	print(l[i], end="")
for j in range(6, 13)
	print(l[j], end="")
for k in range(14, 19)
	print(l[k], end="")

Submission status: Runtime Error

Solution code:
l = input()
for i in range(0, 5) 　print(l[i], end="")
for j in range(6, 13) 　print(l[j], end="")
for k in range(14, 19) 　print(l[k], end="")

Submission status: Runtime Error

Solution code:
l = input()
for i in range(0, 5) 　print(l[i], end="")
for i in range(6, 13) 　print(l[i], end="")
for i in range(14, 19) 　print(l[i], end="")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def readLine_str_list():return list(map(str, stdin.readline().split(',')))
def main():
    s = readLine_str_list()
    print(' '.join(s))

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
a = raw_input()
b = a.split(",")
printf(b[0] + " " +b[1] + " " +b[2])

Submission status: Runtime Error

Solution code:
haiku = input()
haiku = haiku.replace(“r”,” “)
print(haiku)

Submission status: Runtime Error

Solution code:
list = ["haiku", "atcorder", "pytho"]
print(list.replace("," , " "))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import itertools
K, S = map(int, input().split())
s = set([x for x in itertools.combinations_with_replacement(range(K+1), 3) if sum(x) == S]) 
print(len(s) * 3 - (S % 3 == 0) * 2)

Submission status: Runtime Error

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

for x in range(0, K + 1):
    if S - x <= K:
        wariate += max(S - x + 1, 0)
    else:
        wariate += max(0, 2 * K - (S - x) + 1)

print(wariate)

Submission status: Runtime Error

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

# カンマ区切りの文字の入力
a,b,c = map(str, raw_input().split(","))
# 文字列の入力
print a+ " "+b+" "+c

Submission status: Runtime Error

Solution code:
[a, b] = map(int, input().split())
if a*3==b:
    print(1)
elif b%3==0:
    print(b*3+1)
else:
    print(b*3)

Submission status: Runtime Error

Solution code:
def main():
    sx,sy,tx,ty = map(int,input().split())

    root = ""

    # first
    for n in range(tx - sx):
        root += "R"
    for n in range(ty - sy):
        root += "U"

    # first back
    for n in range(tx - sx):
        root += "L"
    for n in range(ty - sy):
        root += "D"

    # first
    root += "D"
    for n in range(tx - sx + 1):
        root += "R"
    for n in range(ty - sy + 1):
        root += "U"
    root += "L"

    # first back
    root += "U"
    for n in range(tx - sx + 1):
        root += "L"
    for n in range(ty - sy + 1):
        root += "D"
    root += "R"

    print(root)

if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import fileinput
for line in fileinput.input():
    a = line.split(",")
    print " ".join(a)