#!/usr/bin/python import sys lines = open(sys.argv[1], "r").readlines() values = [tuple(map(float, line.split(",")[3:5])) for line in lines] x0,y0 = values[0] #print(values) ys = [y for x,y in values] miny = min(ys) wheremin = [x for x,y in values if y == miny][0] print("%.5f\t%.5f\t%.5f" % (max(ys) - min(ys), min(ys), wheremin - x0))