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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: F = None
        self.p: G = None
        self.z: E = None
        self.t: F = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: A = None
        self.w: A = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: D = None
        self.v: G = None
        self.p: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: F = None
        self.p: G = None
        self.z: E = None
        self.t: F = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.u: A = None
        self.w: A = None
        self.v: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: D = None
        self.v: G = None
        self.p: A = None
        self.txt = txt

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

e.o = n
e.z = b
e.w = a
c.x = m
j.r = c
m.x = n
m.p = n
m.u = a
m.t = a
m.z = h
m.w = j
i.w = h
a.q = n
a.v = n
a.u = e
a.w = l
n.v = a
n.u = c
n.t = c
n.z = i
n.w = e
b.s = m
b.x = m
b.v = n
b.p = e
l.o = n
l.z = b
l.w = a
h.w = i
assert i.w.w.w.w.txt == "i"