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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: G = None
        self.u: A = None
        self.txt = txt

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

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

f = A("f")
j = B("j")
d = C("d")
i = D("i")
k = E("k")
l = F("l")
b = G("b")
h = H("h")
m = A("m")

f.r = k
f.o = b
j.q = k
j.t = k
j.x = l
j.w = l
j.p = b
j.z = b
j.u = i
j.v = d
d.v = i
i.u = l
i.s = k
k.v = b
k.o = b
k.y = i
k.z = i
k.t = d
k.p = f
k.u = m
k.w = h
l.x = f
l.u = f
l.o = b
b.t = k
b.r = k
b.y = j
b.u = j
b.q = m
b.w = d
b.p = l
h.t = b
h.v = l
m.r = k
m.o = b
assert d.v.u.x.o.w.v.s.txt == "
class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: G = None
        self.u: A = None
        self.txt = txt

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

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

f = A("f")
j = B("j")
d = C("d")
i = D("i")
k = E("k")
l = F("l")
b = G("b")
h = H("h")
m = A("m")

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