class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: D = None
        self.o: B = None
        self.y: E = None
        self.w: B = None
        self.r: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: A = None
        self.z: A = None
        self.p: C = None
        self.t: F = None
        self.q: G = None
        self.txt = txt

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

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

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

g = A("g")
k = B("k")
l = C("l")
f = D("f")
i = E("i")
m = F("m")
a = G("a")

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: A = None
        self.z: A = None
        self.p: C = None
        self.t: F = None
        self.q: G = None
        self.txt = txt

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

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

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

g = A("g")
k = B("k")
l = C("l")
f = D("f")
i = E("i")
m = F("m")
a = G("a")

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