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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: G = None
        self.s: B = None
        self.t: B = None
        self.u: C = None
        self.v: D = None
        self.r: C = None
        self.txt = txt

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

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

m = A("m")
n = B("n")
e = C("e")
i = D("i")
d = E("d")
c = F("c")
b = G("b")
a = F("a")
k = F("k")
j = F("j")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: G = None
        self.s: B = None
        self.t: B = None
        self.u: C = None
        self.v: D = None
        self.r: C = None
        self.txt = txt

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

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

m = A("m")
n = B("n")
e = C("e")
i = D("i")
d = E("d")
c = F("c")
b = G("b")
a = F("a")
k = F("k")
j = F("j")

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