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

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: G = None
        self.w: G = None
        self.o: E = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: F = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: C = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: I = None
        self.t: C = None
        self.z: I = None
        self.o: F = None
        self.s: F = None
        self.u: F = None
        self.q: E = None
        self.r: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: G = None
        self.w: G = None
        self.o: E = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: F = None
        self.r: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: C = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: I = None
        self.t: C = None
        self.z: I = None
        self.o: F = None
        self.s: F = None
        self.u: F = None
        self.q: E = None
        self.r: D = None
        self.txt = txt

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

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

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