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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.o: H = None
        self.t: C = None
        self.w: G = None
        self.s: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: G = None
        self.v: C = None
        self.q: B = None
        self.w: A = None
        self.x: F = None
        self.u: A = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: H = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.o: H = None
        self.t: C = None
        self.w: G = None
        self.s: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: G = None
        self.v: C = None
        self.q: B = None
        self.w: A = None
        self.x: F = None
        self.u: A = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.x: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: H = None
        self.txt = txt

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

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

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

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