var b=0 for(c<-readLine if c>=b)print{b=c c}