"000".upto("999"){|str| puts str #$>.flush res=gets exit if res.start_with? ?u }