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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: A = None
        self.z: B = None
        self.v: H = None
        self.p: G = None
        self.u: B = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: A = None
        self.q: B = None
        self.txt = txt

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

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

e = A("e")
a = B("a")
l = C("l")
h = D("h")
m = E("m")
b = F("b")
j = G("j")
c = H("c")
f = H("f")
k = G("k")

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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: A = None
        self.z: B = None
        self.v: H = None
        self.p: G = None
        self.u: B = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: A = None
        self.q: B = None
        self.txt = txt

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

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

e = A("e")
a = B("a")
l = C("l")
h = D("h")
m = E("m")
b = F("b")
j = G("j")
c = H("c")
f = H("f")
k = G("k")

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