class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: F = None
        self.s: D = None
        self.u: I = None
        self.z: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.t: G = None
        self.x: C = None
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: D = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: C = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: C = None
        self.w: C = None
        self.s: I = None
        self.u: G = None
        self.q: H = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: G = None
        self.y: E = None
        self.r: G = None
        self.z: H = None
        self.p: C = None
        self.o: C = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: C = None
        self.w: F = None
        self.y: F = None
        self.p: B = None
        self.v: F = None
        self.u: E = None
        self.txt = txt

e = A("e")
c = B("c")
l = C("l")
n = D("n")
b = E("b")
i = F("i")
f = G("f")
k = H("k")
h = I("h")

e.x = b
e.q = i
e.s = n
e.u = h
e.z = l
c.q = k
c.u = k
c.w = b
c.t = f
c.x = l
l.s = k
l.r = n
l.x = c
n.w = f
n.y = l
n.o = c
b.o = i
b.p = i
b.y = i
b.v = l
b.w = l
b.s = h
b.u = f
b.q = k
i.v = h
i.w = f
i.r = f
i.y = b
i.z = k
i.p = l
i.o = l
i.u = l
f.w = c
f.v = n
k.o = n
h.q = c
h.p = c
h.x = l
h.w = i
h.y = i
h.v = i
h.u = b
assert k.o.o.w.u.v.w.txt == "
class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: F = None
        self.s: D = None
        self.u: I = None
        self.z: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: E = None
        self.t: G = None
        self.x: C = None
        self.u: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: D = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: C = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: C = None
        self.w: C = None
        self.s: I = None
        self.u: G = None
        self.q: H = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: G = None
        self.y: E = None
        self.r: G = None
        self.z: H = None
        self.p: C = None
        self.o: C = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: C = None
        self.w: F = None
        self.y: F = None
        self.p: B = None
        self.v: F = None
        self.u: E = None
        self.txt = txt

e = A("e")
c = B("c")
l = C("l")
n = D("n")
b = E("b")
i = F("i")
f = G("f")
k = H("k")
h = I("h")

e.x = b
e.q = i
e.s = n
e.u = h
e.z = l
c.q = k
c.u = k
c.w = b
c.t = f
c.x = l
l.s = k
l.r = n
l.x = c
n.w = f
n.y = l
n.o = c
b.o = i
b.p = i
b.y = i
b.v = l
b.w = l
b.s = h
b.u = f
b.q = k
i.v = h
i.w = f
i.r = f
i.y = b
i.z = k
i.p = l
i.o = l
i.u = l
f.w = c
f.v = n
k.o = n
h.q = c
h.p = c
h.x = l
h.w = i
h.y = i
h.v = i
h.u = b
assert k.o.o.w.u.v.w.txt == "f"