for(n<-""*100;s=readLine)println{2*s(0)-2/((s.tail.toInt+14)/15)-n}