#PCBNAM0000013. Token rỗng với dấu phân cách tường minh (Empty Field with Explicit Delimiter)

Token rỗng với dấu phân cách tường minh (Empty Field with Explicit Delimiter)

Empty Field with Explicit Delimiter

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

A record consists of three text fields named leftleft, middlemiddle, and rightright, separated by exactly two commas. The middle field may be empty, while the first and last fields are non-empty. Print each field verbatim on its own line; an empty field produces a blank output line.

Input

One line in the form left,middle,right, containing exactly two commas. The commas delimit the fields and are not part of their contents.

Output

Print exactly three lines: leftleft, middlemiddle, then rightright. Preserve leading zeroes and internal spaces in each field.

Subtasks

  • Subtask 1 — 100 points: 1≤∣left∣,∣right∣≤1001\le |left|,|right|\le100 and 0≤∣middle∣≤1000\le |middle|\le100. The per-field length limits are specified by the Extended version.

Examples

Input

A,,C

Output

A

C

Explanation

The input A,,C contains two consecutive commas. Calling split(",") produces three strings: "A", "", and "C". The middle field is an empty string, not a missing field. Three print() calls output A, a blank line, and C.