class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: G = None
        self.u: A = None
        self.w: G = None
        self.y: D = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: A = None
        self.u: F = None
        self.t: A = None
        self.o: B = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: F = None
        self.z: D = None
        self.t: G = None
        self.p: D = None
        self.x: D = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: C = None
        self.txt = txt

d = A("d")
j = B("j")
h = C("h")
l = D("l")
c = E("c")
i = F("i")
m = G("m")
e = F("e")
b = B("b")

d.w = c
j.o = l
j.y = l
j.q = l
j.v = m
j.w = m
j.u = d
h.t = b
h.x = e
l.s = d
l.z = d
l.t = d
l.u = e
l.o = b
l.p = m
c.x = h
c.z = m
i.o = d
i.u = e
i.z = l
i.p = l
i.x = l
i.t = m
i.q = b
m.t = i
m.s = h
e.o = d
e.u = i
e.z = l
e.p = l
e.x = l
e.t = m
e.q = j
b.o = l
b.y = l
b.q = l
b.v = m
b.w = m
b.u = d
assert b.u.w.x.x.t.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: G = None
        self.u: A = None
        self.w: G = None
        self.y: D = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: A = None
        self.u: F = None
        self.t: A = None
        self.o: B = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: F = None
        self.z: D = None
        self.t: G = None
        self.p: D = None
        self.x: D = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: C = None
        self.txt = txt

d = A("d")
j = B("j")
h = C("h")
l = D("l")
c = E("c")
i = F("i")
m = G("m")
e = F("e")
b = B("b")

d.w = c
j.o = l
j.y = l
j.q = l
j.v = m
j.w = m
j.u = d
h.t = b
h.x = e
l.s = d
l.z = d
l.t = d
l.u = e
l.o = b
l.p = m
c.x = h
c.z = m
i.o = d
i.u = e
i.z = l
i.p = l
i.x = l
i.t = m
i.q = b
m.t = i
m.s = h
e.o = d
e.u = i
e.z = l
e.p = l
e.x = l
e.t = m
e.q = j
b.o = l
b.y = l
b.q = l
b.v = m
b.w = m
b.u = d
assert b.u.w.x.x.t.t.u.txt == "e"