class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: H = None
        self.t: G = None
        self.q: C = None
        self.w: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: F = None
        self.o: J = None
        self.t: E = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: J = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: E = None
        self.v: G = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: F = None
        self.o: J = None
        self.t: E = None
        self.u: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: J = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: E = None
        self.v: G = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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