a='' for i in input(): a+=['0','1'][i=='l'] if i in ['l','o'] else i print(a)