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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: J = None
        self.q: A = None
        self.y: E = None
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: D = None
        self.v: E = None
        self.y: B = None
        self.t: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: J = None
        self.q: A = None
        self.y: E = None
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: D = None
        self.v: E = None
        self.y: B = None
        self.t: B = None
        self.txt = txt

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

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