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

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: B = None
        self.y: B = None
        self.s: B = None
        self.o: G = None
        self.v: C = None
        self.x: C = None
        self.p: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: B = None
        self.y: B = None
        self.s: B = None
        self.o: G = None
        self.v: C = None
        self.x: C = None
        self.p: B = None
        self.txt = txt

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

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