puts gets.scan(/([^w]+)(w+)/).max_by{|a| a[1]}.map{|a| a[0]} rescue ""