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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: A = None
        self.u: G = None
        self.v: G = None
        self.t: G = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: A = None
        self.p: F = None
        self.s: F = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

m.z = i
m.v = l
m.p = a
m.o = a
m.t = k
d.z = k
d.t = b
l.y = d
l.o = i
l.u = c
l.v = c
l.t = c
l.z = e
b.z = k
k.t = i
k.q = i
k.p = a
k.s = a
k.y = c
a.o = k
a.q = d
c.p = a
i.z = m
i.v = l
i.p = a
i.o = a
i.t = k
e.z = k
assert l.y.t.z.t.z.v.txt == "
class A:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: C = None
        self.p: F = None
        self.o: F = None
        self.t: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: A = None
        self.u: G = None
        self.v: G = None
        self.t: G = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: A = None
        self.p: F = None
        self.s: F = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

m.z = i
m.v = l
m.p = a
m.o = a
m.t = k
d.z = k
d.t = b
l.y = d
l.o = i
l.u = c
l.v = c
l.t = c
l.z = e
b.z = k
k.t = i
k.q = i
k.p = a
k.s = a
k.y = c
a.o = k
a.q = d
c.p = a
i.z = m
i.v = l
i.p = a
i.o = a
i.t = k
e.z = k
assert l.y.t.z.t.z.v.txt == "l"