class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: B = None
        self.v: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: D = None
        self.s: G = None
        self.y: B = None
        self.o: D = None
        self.v: F = None
        self.x: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: F = None
        self.q: E = None
        self.v: E = None
        self.w: A = None
        self.p: G = None
        self.o: A = None
        self.txt = txt

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

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

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

a = A("a")
g = B("g")
e = C("e")
j = D("j")
b = E("b")
m = F("m")
k = G("k")

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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: D = None
        self.s: G = None
        self.y: B = None
        self.o: D = None
        self.v: F = None
        self.x: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.s: F = None
        self.q: E = None
        self.v: E = None
        self.w: A = None
        self.p: G = None
        self.o: A = None
        self.txt = txt

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

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

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

a = A("a")
g = B("g")
e = C("e")
j = D("j")
b = E("b")
m = F("m")
k = G("k")

a.x = b
a.u = g
a.v = g
g.s = e
g.x = m
g.y = m
g.p = j
g.o = k
e.r = g
e.y = g
e.z = j
e.o = j
e.s = k
e.v = m
e.x = a
j.z = k
j.p = k
j.s = m
j.q = b
j.v = b
j.w = a
j.o = a
b.w = m
m.x = g
m.v = g
m.o = g
k.s = a
k.r = b
k.t = m
assert b.w.o.s.txt == "e"