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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: A = None
        self.t: D = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: A = None
        self.t: D = None
        self.x: A = None
        self.txt = txt

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

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