class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: F = None
        self.z: E = None
        self.o: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: F = None
        self.q: F = None
        self.s: D = None
        self.o: D = None
        self.p: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: F = None
        self.q: F = None
        self.s: D = None
        self.o: D = None
        self.p: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

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

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

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