class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: C = None
        self.u: B = None
        self.y: D = None
        self.w: I = None
        self.x: D = None
        self.z: H = None
        self.r: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: E = None
        self.u: D = None
        self.o: D = None
        self.p: E = None
        self.y: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: E = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: D = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: A = None
        self.p: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: H = None
        self.v: F = None
        self.r: D = None
        self.txt = txt

k = A("k")
d = B("d")
e = C("e")
n = D("n")
i = E("i")
m = F("m")
c = G("c")
g = H("g")
h = I("h")
f = J("f")

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: E = None
        self.u: D = None
        self.o: D = None
        self.p: E = None
        self.y: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: E = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: D = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: A = None
        self.p: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: H = None
        self.v: F = None
        self.r: D = None
        self.txt = txt

k = A("k")
d = B("d")
e = C("e")
n = D("n")
i = E("i")
m = F("m")
c = G("c")
g = H("g")
h = I("h")
f = J("f")

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