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

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication14
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] msg = Console.ReadLine().Split(' ');
            int sx = int.Parse(msg[0]);
            int sy = int.Parse(msg[1]);
            int tx = int.Parse(msg[2]);
            int ty = int.Parse(msg[3]);

            string result = "";
            //sx,sy => 辺に沿って移動
            for (int i = sy; i < ty; i++) result += "U";
            //右に折り返すとtx,tyに到達する
            for (int i = sx; i < tx; i++) result += "R";
            //下に折り返す
            for (int i = ty; i > sy; i--) result += "D";
            //左に折り返すとsx,xyに戻る
            for (int i = tx; i > sx; i--) result += "L";
            //sx,xyから外に一歩
            result += "L";
            //sx-1,sy => 辺に沿って移動してty + 1まで
            for (int i = sy; i < ty + 1; i++) result += "U";
            //右に折り返すとtx,ty + 1に到達する
            for (int i = sx - 1; i < tx; i++) result += "R";
            //下と右に一歩づつ
            result += "DR";
            //下に折り返す
            for (int i = ty; i > sy - 1; i--) result += "D";
            //左に折り返すとsx,xy - 1に戻る
            for (int i = tx + 1; i > sx; i--) result += "L";
            //上に一歩で元のさやに
            result += "U";

            Console.WriteLine(result);
            Console.ReadLine();
        }
    }
}