class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: C = None
        self.o: B = None
        self.z: G = None
        self.t: C = None
        self.v: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: A = None
        self.z: C = None
        self.w: G = None
        self.q: C = None
        self.x: C = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: A = None
        self.z: C = None
        self.s: D = None
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: D = None
        self.s: F = None
        self.v: D = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: F = None
        self.o: C = None
        self.p: C = None
        self.u: F = None
        self.w: C = None
        self.z: B = None
        self.txt = txt

e = A("e")
a = B("a")
f = C("f")
l = D("l")
g = E("g")
c = F("c")
n = G("n")
k = G("k")
h = E("h")
b = C("b")

e.u = n
e.w = f
e.t = f
e.o = a
e.z = k
e.v = k
a.s = l
a.y = e
a.z = f
a.w = k
a.q = b
a.x = b
a.v = g
f.t = c
f.v = e
f.x = e
f.z = b
f.s = l
l.o = a
l.x = f
g.q = c
g.s = c
g.y = c
g.p = l
g.v = l
g.t = a
c.x = e
c.z = l
n.v = g
n.t = c
n.u = c
n.o = b
n.w = b
n.p = f
n.z = a
k.v = g
k.t = c
k.u = c
k.o = f
k.p = f
k.w = f
k.z = a
h.q = c
h.s = c
h.y = c
h.p = l
h.v = l
h.t = a
b.t = c
b.v = e
b.x = e
b.z = f
b.s = l
assert l.o.q.s.x.t.x.txt == "
class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: C = None
        self.o: B = None
        self.z: G = None
        self.t: C = None
        self.v: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: A = None
        self.z: C = None
        self.w: G = None
        self.q: C = None
        self.x: C = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: A = None
        self.z: C = None
        self.s: D = None
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: D = None
        self.s: F = None
        self.v: D = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: F = None
        self.o: C = None
        self.p: C = None
        self.u: F = None
        self.w: C = None
        self.z: B = None
        self.txt = txt

e = A("e")
a = B("a")
f = C("f")
l = D("l")
g = E("g")
c = F("c")
n = G("n")
k = G("k")
h = E("h")
b = C("b")

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