while(0<1)println{val s="\\d+".r.findAllIn(readLine)toSeq;s.last.toInt-s(0).toInt}