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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: F = None
        self.v: A = None
        self.q: H = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: F = None
        self.v: A = None
        self.q: H = None
        self.txt = txt

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

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

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

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

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

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

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