class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: E = None
        self.v: D = None
        self.o: F = None
        self.x: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: H = None
        self.s: I = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: D = None
        self.y: H = None
        self.o: H = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: C = None
        self.q: E = None
        self.s: I = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: I = None
        self.y: G = None
        self.w: A = None
        self.v: I = None
        self.o: J = None
        self.x: J = None
        self.z: F = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: I = None
        self.p: I = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: A = None
        self.y: B = None
        self.s: D = None
        self.w: H = None
        self.p: C = None
        self.z: J = None
        self.o: B = None
        self.q: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: H = None
        self.s: I = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: D = None
        self.y: H = None
        self.o: H = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: C = None
        self.q: E = None
        self.s: I = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: I = None
        self.y: G = None
        self.w: A = None
        self.v: I = None
        self.o: J = None
        self.x: J = None
        self.z: F = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: I = None
        self.p: I = None
        self.x: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: A = None
        self.y: B = None
        self.s: D = None
        self.w: H = None
        self.p: C = None
        self.z: J = None
        self.o: B = None
        self.q: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: F = None
        self.txt = txt

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

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