Guest User

Untitled

a guest
May 31st, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import sys
  2.  
  3. d = 12
  4. for line in sys.stdin:
  5. line = [int(x) for x in line.strip("n").split()]
  6.  
  7. s = line[0]
  8. p = line[1]
  9. y = line[2]
  10. j = line[3]
  11.  
  12. yertle = (d+j-y-p)/3
  13. spot = (d + j + 2*y - p)/3
  14. puff = (d+j+p-s)/3
  15.  
  16.  
  17. print spot,puff,yertle
Add Comment
Please, Sign In to add comment