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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: D = None
        self.w: A = None
        self.s: F = None
        self.x: A = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: F = None
        self.x: E = None
        self.v: G = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: C = None
        self.t: G = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: A = None
        self.z: D = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: D = None
        self.w: A = None
        self.s: F = None
        self.x: A = None
        self.t: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: F = None
        self.x: E = None
        self.v: G = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: C = None
        self.t: G = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: A = None
        self.z: D = None
        self.v: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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