class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: I = None
        self.o: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: H = None
        self.r: H = None
        self.q: H = None
        self.z: F = None
        self.p: F = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: D = None
        self.t: C = None
        self.v: B = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: E = None
        self.s: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: H = None
        self.r: H = None
        self.q: H = None
        self.z: F = None
        self.p: F = None
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: D = None
        self.t: C = None
        self.v: B = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: E = None
        self.s: H = None
        self.txt = txt

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

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