class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: F = None
        self.y: A = None
        self.q: F = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: G = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: C = None
        self.o: D = None
        self.z: G = None
        self.x: G = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: D = None
        self.p: D = None
        self.s: E = None
        self.o: B = None
        self.x: E = None
        self.q: F = None
        self.txt = txt

e = A("e")
g = B("g")
b = C("b")
c = D("c")
h = E("h")
m = F("m")
i = G("i")
f = D("f")

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: F = None
        self.y: A = None
        self.q: F = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: G = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: C = None
        self.o: D = None
        self.z: G = None
        self.x: G = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: D = None
        self.p: D = None
        self.s: E = None
        self.o: B = None
        self.x: E = None
        self.q: F = None
        self.txt = txt

e = A("e")
g = B("g")
b = C("b")
c = D("c")
h = E("h")
m = F("m")
i = G("i")
f = D("f")

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