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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: E = None
        self.p: H = None
        self.o: F = None
        self.w: A = None
        self.u: C = None
        self.y: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: F = None
        self.w: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: D = None
        self.y: D = None
        self.t: G = None
        self.p: D = None
        self.s: D = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: C = None
        self.u: H = None
        self.q: A = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: C = None
        self.q: C = None
        self.y: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.t: E = None
        self.p: H = None
        self.o: F = None
        self.w: A = None
        self.u: C = None
        self.y: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: F = None
        self.w: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: D = None
        self.y: D = None
        self.t: G = None
        self.p: D = None
        self.s: D = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: C = None
        self.u: H = None
        self.q: A = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: C = None
        self.q: C = None
        self.y: C = None
        self.txt = txt

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

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

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