class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: F = None
        self.x: D = None
        self.v: F = None
        self.w: D = None
        self.o: B = None
        self.p: F = None
        self.r: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: I = None
        self.p: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: F = None
        self.r: B = None
        self.x: H = None
        self.o: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: G = None
        self.o: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: I = None
        self.p: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.s: F = None
        self.r: B = None
        self.x: H = None
        self.o: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: G = None
        self.o: G = None
        self.txt = txt

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

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