import re while+1:print re.sub('\D.*','',raw_input())