class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: B = None
        self.v: E = None
        self.s: H = None
        self.p: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: E = None
        self.v: E = None
        self.w: I = None
        self.o: E = None
        self.t: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: C = None
        self.s: I = None
        self.z: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: B = None
        self.t: B = None
        self.w: H = None
        self.q: D = None
        self.o: B = None
        self.txt = txt

e = A("e")
l = B("l")
g = C("g")
j = D("j")
h = E("h")
k = F("k")
c = G("c")
m = H("m")
n = I("n")
a = A("a")

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

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: E = None
        self.v: E = None
        self.w: I = None
        self.o: E = None
        self.t: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: C = None
        self.s: I = None
        self.z: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: H = None
        self.p: B = None
        self.t: B = None
        self.w: H = None
        self.q: D = None
        self.o: B = None
        self.txt = txt

e = A("e")
l = B("l")
g = C("g")
j = D("j")
h = E("h")
k = F("k")
c = G("c")
m = H("m")
n = I("n")
a = A("a")

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