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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: I = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: B = None
        self.y: B = None
        self.w: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: C = None
        self.w: A = None
        self.s: B = None
        self.p: I = None
        self.u: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: G = None
        self.u: C = None
        self.t: E = None
        self.r: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: D = None
        self.v: D = None
        self.q: J = None
        self.r: F = None
        self.z: A = None
        self.u: J = None
        self.p: F = None
        self.w: J = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: I = None
        self.z: I = None
        self.q: H = None
        self.y: G = None
        self.u: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: I = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: B = None
        self.y: B = None
        self.w: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.o: C = None
        self.w: A = None
        self.s: B = None
        self.p: I = None
        self.u: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: G = None
        self.u: C = None
        self.t: E = None
        self.r: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: D = None
        self.v: D = None
        self.q: J = None
        self.r: F = None
        self.z: A = None
        self.u: J = None
        self.p: F = None
        self.w: J = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: I = None
        self.z: I = None
        self.q: H = None
        self.y: G = None
        self.u: E = None
        self.txt = txt

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

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