def fake_bin(x): result = '' for i in x: if int(i) < 5: result += '0' if int(i) >= 5: result += '1' return result