This is somewhat unrelated to your attempted solution, but it's how I'd approach the problem. I really try to avoid regex when possible, and it's definitely possible to do so in your case.
The first line takes your file and names it f (and automatically closes the file when we're done with it). Then I split your data and put it into a list, splitting each time there's a space. Initially, the output is strings, so I make those into floats. Then I do the weird calculation you want based on the numbers in my list, and print the output.
with open('nums.txt','r') as f:
line = f.readline()
list_of_nums = line.split(" ")
myNums = [float(num) for num in list_of_nums]
weird_calculation = (myNums[0] + myNums[1]) / myNums[2]
print(str(weird_calculation) + "\t" + str(myNums[3]))
Output:
1.0 6.0
If you want only some of these numbers to be treated as floats and others as ints, you'll have to explicitly change that.