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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: F = None
        self.y: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: A = None
        self.q: J = None
        self.u: I = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: I = None
        self.w: J = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.v: E = None
        self.p: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: B = None
        self.u: C = None
        self.w: C = None
        self.y: G = None
        self.r: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: F = None
        self.y: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: A = None
        self.q: J = None
        self.u: I = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: I = None
        self.w: J = None
        self.u: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.v: E = None
        self.p: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: B = None
        self.u: C = None
        self.w: C = None
        self.y: G = None
        self.r: G = None
        self.txt = txt

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

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

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