class A:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: G = None
        self.x: F = None
        self.r: B = None
        self.o: C = None
        self.u: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: H = None
        self.v: F = None
        self.p: H = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: C = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: H = None
        self.v: F = None
        self.p: H = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: C = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

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