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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: A = None
        self.o: F = None
        self.p: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.q: A = None
        self.o: F = None
        self.p: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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