class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: D = None
        self.v: H = None
        self.w: B = None
        self.q: D = None
        self.r: E = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: A = None
        self.v: F = None
        self.y: G = None
        self.z: A = None
        self.r: G = None
        self.s: G = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: A = None
        self.y: G = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

b = A("b")
l = B("l")
h = C("h")
f = D("f")
j = E("j")
g = F("g")
i = G("i")
e = H("e")

b.t = f
b.z = f
b.q = f
b.x = f
b.v = e
b.w = l
b.r = j
l.q = f
h.q = g
f.u = e
f.t = b
f.z = b
f.v = g
f.y = i
f.r = i
f.s = i
f.q = j
j.t = i
j.y = i
j.q = b
j.r = b
g.w = f
i.u = h
i.o = h
i.w = g
e.y = j
assert e.y.y.o.q.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: D = None
        self.v: H = None
        self.w: B = None
        self.q: D = None
        self.r: E = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: A = None
        self.v: F = None
        self.y: G = None
        self.z: A = None
        self.r: G = None
        self.s: G = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: A = None
        self.y: G = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

b = A("b")
l = B("l")
h = C("h")
f = D("f")
j = E("j")
g = F("g")
i = G("i")
e = H("e")

b.t = f
b.z = f
b.q = f
b.x = f
b.v = e
b.w = l
b.r = j
l.q = f
h.q = g
f.u = e
f.t = b
f.z = b
f.v = g
f.y = i
f.r = i
f.s = i
f.q = j
j.t = i
j.y = i
j.q = b
j.r = b
g.w = f
i.u = h
i.o = h
i.w = g
e.y = j
assert e.y.y.o.q.w.t.txt == "b"