import re,sys

def main(argv):	
	for line in sys.stdin:
		piece,from_location,to_location = line.split("\t")
		from_location = from_location.split(",")
		to_location = to_location.split(",")
		print "%s\t%s\t%s" % (piece, int(to_location[0])-int(from_location[0]), int(to_location[1]) - int(from_location[1]) )
		
if __name__ == '__main__':
	sys.stderr.write("Calculate move diff: %s\n"%sys.argv)
	main(sys.argv)
@@ -231,17 +231,17 @@
 ocation%5B
-0
+1
 %5D)-int(f
@@ -257,13 +257,17 @@
 ion%5B
-0
+1
 %5D), 
+%0A%09%09%09
 int(
@@ -278,17 +278,17 @@
 ocation%5B
-1
+0
 %5D) - int
@@ -302,17 +302,17 @@
 ocation%5B
-1
+0
 %5D) )%0A%09%09%0A

Change order of diff to be x,y instead of y,x