from functools import reduce
print(reduce(lambda res, y : res + y, list(map(lambda x: (1/(3 ** x)), range(100)))) / reduce(lambda res, y : res + y,list(map(lambda x: (1/(2 ** x)), range(100)))))
ZnJvbSBmdW5jdG9vbHMgaW1wb3J0IHJlZHVjZQoKcHJpbnQocmVkdWNlKGxhbWJkYSByZXMsIHkgOiByZXMgKyB5LCBsaXN0KG1hcChsYW1iZGEgIHg6ICgxLygzICoqIHgpKSwgcmFuZ2UoMTAwKSkpKSAvIHJlZHVjZShsYW1iZGEgcmVzLCB5IDogcmVzICsgeSxsaXN0KG1hcChsYW1iZGEgIHg6ICgxLygyICoqIHgpKSwgcmFuZ2UoMTAwKSkpKSk=