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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: D = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: D = None
        self.v: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: D = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: H = None
        self.r: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: C = None
        self.w: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: D = None
        self.r: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: D = None
        self.v: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: D = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: H = None
        self.r: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.z: C = None
        self.w: H = None
        self.txt = txt

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

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

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