class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: B = None
        self.q: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.r: G = None
        self.o: D = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: E = None
        self.o: I = None
        self.w: G = None
        self.u: A = None
        self.z: F = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: B = None
        self.x: C = None
        self.y: H = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: F = None
        self.s: A = None
        self.o: A = None
        self.p: C = None
        self.q: H = None
        self.z: A = None
        self.v: H = None
        self.u: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.r: G = None
        self.o: D = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: E = None
        self.o: I = None
        self.w: G = None
        self.u: A = None
        self.z: F = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: B = None
        self.x: C = None
        self.y: H = None
        self.s: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: F = None
        self.s: A = None
        self.o: A = None
        self.p: C = None
        self.q: H = None
        self.z: A = None
        self.v: H = None
        self.u: C = None
        self.txt = txt

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

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