input_str = input() coordinates = input_str.split(";") x,y =0,0 for coord in coordinates: if len(coord)<2: continue direction = coord[0] distance_str = coord[1:] if not distance_str.isdigit(): continue distance = int(distance_str) if ...