File standardInput readLines map(split map(asNumber)do((180-(at(0)-last+540)%360)println))