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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: G = None
        self.z: D = None
        self.p: A = None
        self.q: H = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: F = None
        self.t: A = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: E = None
        self.z: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: G = None
        self.z: D = None
        self.p: A = None
        self.q: H = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: F = None
        self.t: A = None
        self.w: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: E = None
        self.z: G = None
        self.txt = txt

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

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