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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: A = None
        self.v: A = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.p: A = None
        self.v: A = None
        self.y: G = None
        self.txt = txt

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

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