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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: C = None
        self.t: H = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: D = None
        self.s: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: G = None
        self.z: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: C = None
        self.t: H = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: D = None
        self.s: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.v: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: G = None
        self.z: I = None
        self.txt = txt

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

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

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