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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: B = None
        self.txt = txt

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

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

m = A("m")
c = B("c")
l = C("l")
a = D("a")
e = E("e")
h = F("h")
b = G("b")
n = F("n")
i = A("i")
d = B("d")

m.s = e
m.z = e
m.w = b
m.o = l
m.y = i
c.o = l
c.r = n
c.w = i
l.t = a
a.x = b
a.u = m
e.t = l
e.z = d
h.o = i
h.s = a
h.z = c
h.v = e
b.w = i
b.u = i
n.o = i
n.s = a
n.z = d
n.v = e
i.s = e
i.z = e
i.w = b
i.o = l
i.y = m
d.o = l
d.r = n
d.w = m
assert n.v.t.t.u.o.t.txt == "
class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: E = None
        self.w: G = None
        self.o: C = None
        self.y: A = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: B = None
        self.txt = txt

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

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

m = A("m")
c = B("c")
l = C("l")
a = D("a")
e = E("e")
h = F("h")
b = G("b")
n = F("n")
i = A("i")
d = B("d")

m.s = e
m.z = e
m.w = b
m.o = l
m.y = i
c.o = l
c.r = n
c.w = i
l.t = a
a.x = b
a.u = m
e.t = l
e.z = d
h.o = i
h.s = a
h.z = c
h.v = e
b.w = i
b.u = i
n.o = i
n.s = a
n.z = d
n.v = e
i.s = e
i.z = e
i.w = b
i.o = l
i.y = m
d.o = l
d.r = n
d.w = m
assert n.v.t.t.u.o.t.txt == "a"