class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: E = None
        self.q: F = None
        self.r: A = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: A = None
        self.o: C = None
        self.x: F = None
        self.u: B = None
        self.z: H = None
        self.t: G = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: H = None
        self.p: A = None
        self.x: C = None
        self.w: C = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: B = None
        self.s: H = None
        self.p: H = None
        self.r: G = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: E = None
        self.q: F = None
        self.r: A = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: A = None
        self.o: C = None
        self.x: F = None
        self.u: B = None
        self.z: H = None
        self.t: G = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: H = None
        self.p: A = None
        self.x: C = None
        self.w: C = None
        self.y: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: B = None
        self.s: H = None
        self.p: H = None
        self.r: G = None
        self.w: C = None
        self.txt = txt

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

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