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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: A = None
        self.s: H = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: D = None
        self.q: D = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: D = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: B = None
        self.u: F = None
        self.r: E = None
        self.z: A = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: G = None
        self.y: D = None
        self.z: D = None
        self.v: F = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: A = None
        self.s: H = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: D = None
        self.q: D = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.p: D = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: B = None
        self.u: F = None
        self.r: E = None
        self.z: A = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: G = None
        self.y: D = None
        self.z: D = None
        self.v: F = None
        self.w: C = None
        self.txt = txt

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

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