class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: F = None
        self.q: D = None
        self.o: C = None
        self.x: C = None
        self.u: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: A = None
        self.u: D = None
        self.q: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: E = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

l = A("l")
b = B("b")
h = C("h")
j = D("j")
a = E("a")
d = F("d")
i = G("i")
e = H("e")
f = B("f")
g = C("g")

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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: A = None
        self.u: D = None
        self.q: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: E = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

l = A("l")
b = B("b")
h = C("h")
j = D("j")
a = E("a")
d = F("d")
i = G("i")
e = H("e")
f = B("f")
g = C("g")

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