class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: H = None
        self.s: B = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: E = None
        self.u: E = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: E = None
        self.u: E = None
        self.v: B = None
        self.txt = txt

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

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