import sys

lines = sys.stdin
for line in lines:
    try:
        x, y = map(float, line.split(',')[:2])
    except ValueError:
        continue # skip invalid (for whatever reason) lines
    else:
        # use x, y here
        x *= 10000
        y *= 10000
        z = 0.0
        print(x, y, z)