import sys

#path = ""
path = "138.6078692580712,-34.92567740665413,0 138.6077959688831,-34.92532748053992,0 138.5980583039374,-34.92582297379573,0 138.5876949608381,-34.92643236890176,0 138.5875371574779,-34.92481281015606,0 138.5796370552598,-34.92333569844628,0 138.5432135447107,-34.92493297950534,0 138.5364681383938,-34.9276496950114,0 138.5338570752634,-34.92648184509457,0 138.5292429435132,-34.92601349946434,0 138.5093575882224,-34.92672166866981,0 138.4997852440142,-34.9263200234181,0 138.4977609615937,-34.92578500096076,0 138.4931277638556,-34.92575988554748,0 138.4761473697923,-34.92769687693241,0 138.4506614454362,-34.92629247543459,0 138.2958364928454,-35.03051441900812,0 137.9627025759172,-35.22272942017185,0 137.5407642945927,-35.3188058543196,0 136.9448411414216,-35.44719115506063,0 135.9034907525684,-35.52580076778123,0 134.201158729168,-35.4527808293492,0 132.4289292441687,-35.4374958412656,0 129.7454934539253,-35.68088820360298,0 124.3775336611923,-35.65847908271908,0 121.3606379494314,-35.78362457735408,0 118.4811506424798,-35.81680746136318,0 116.2634614617748,-35.5495082389343,0 114.4203242496006,-34.2622499296238,0 115.1660150297524,-32.25578448179088,0 115.279751976167,-32.0035082486959,0 115.3740623362582,-31.95234275833085,0 115.5171724664022,-31.94870753182727,0 115.6065963743464,-31.95635201114795,0 115.7017496911437,-31.97604855514185,0 115.733040183671,-32.00672590974731,0 115.7404590877258,-32.01255279486684,0 115.7516033892496,-32.01618212687926,0 115.7521246281158,-32.01594937700432,0 115.7533108190685,-32.01361565385972,0 115.7550916276849,-32.01056444538698,0 115.7563482209607,-32.0083482671247,0 115.7572167778872,-32.00709611764697,0 115.7580549222466,-32.00631076053886,0 115.7588487812484,-32.00529876276295,0 115.7605739767226,-32.00208804990039,0 115.7609918532136,-32.00048864809396,0 115.7625069752098,-31.99844137901701,0 115.7673469278442,-31.99155658087613,0 115.7697535119676,-31.98780445994096,0 115.7735511005237,-31.98598788938228,0 115.7815023326081,-31.98310401307595,0 115.7915180579886,-31.98128799327554,0 115.7914672988525,-31.97493641087432,0 115.7915990711651,-31.97204151835744,0 115.7916317525105,-31.97180183206091,0 115.7915034927803,-31.97138413297414,0 115.7915337003417,-31.97056820693056,0 115.7917057219772,-31.96409045629285,0 115.7919034551751,-31.96017630183206,0 115.7912300804779,-31.95728503966636,0 115.7975863220928,-31.95719523775702,0 115.7976035119446,-31.95556914946886,0 115.797953361002,-31.95554574000795,0"
output_path = "["

for coordinate in path.split(' ')[0::1]:
        [x, y, z] = coordinate.split(',')

        output_path += f'''[{y}, {x}],'''

output_path = output_path.strip(',') + ']'

print(output_path)
