class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: D = None
        self.u: B = None
        self.t: B = None
        self.s: F = None
        self.o: B = None
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: H = None
        self.x: H = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: C = None
        self.s: E = None
        self.o: F = None
        self.y: F = None
        self.w: G = None
        self.q: H = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: F = None
        self.t: H = None
        self.p: D = None
        self.r: B = None
        self.w: G = None
        self.s: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: F = None
        self.s: E = None
        self.t: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.w: H = None
        self.x: H = None
        self.p: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: C = None
        self.s: E = None
        self.o: F = None
        self.y: F = None
        self.w: G = None
        self.q: H = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.u: F = None
        self.t: H = None
        self.p: D = None
        self.r: B = None
        self.w: G = None
        self.s: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: F = None
        self.s: E = None
        self.t: G = None
        self.txt = txt

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

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

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