t = {} t[0] = 20104 t[1] = 20063 t[2] = 19892 t[3] = 20011 t[4] = 19874 t[5] = 20199 t[6] = 19898 t[7] = 20163 t[8] = 19956 t[9] = 19841 local str = io.read() local t2 = {} for i = 1, #str do local b = str:sub(i, i) if(b ~= ".") then b = tonumber(b) if(t2[b] == nil) then t2[b] = 1 else t2[b] = t2[b] + 1 end end end local x, y for i = 0, 9 do if(t[i] < t2[i]) then x = i elseif(t2[i] < t[i]) then y = i end end print(x .. " " .. y)