string = input() string=string.lower() num='0123456789' tmp_str,tmp_str_len='',0 max_str,max_str_len='',0 for i in string: if i in num: tmp_str+=i tmp_str_len+=1 else: if tmp_str_len>max_str_len: max_str,max_str_len=tmp_str,tmp_str_len tmp_str,tmp_str_len='',0 if tmp_str_len>max_str_len: max_str=tmp_str print(max_str)
s = input() s += '#' res , L, R = 0, 0, 0 l, r = 0,0 count = 0 for i in range(len(s)): if '0'<=s[i] and s[i]<='9': r = i count += 1 else: if count>res: res = count L, R = l, r+1 l = i+1 count = 0 print(s[L:R])