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

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

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: A = None
        self.v: H = None
        self.s: H = None
        self.o: E = None
        self.t: F = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: G = None
        self.u: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: E = None
        self.w: F = None
        self.v: E = None
        self.x: B = None
        self.r: C = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: A = None
        self.v: H = None
        self.s: H = None
        self.o: E = None
        self.t: F = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: G = None
        self.u: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: E = None
        self.w: F = None
        self.v: E = None
        self.x: B = None
        self.r: C = None
        self.z: A = None
        self.txt = txt

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

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

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