class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: E = None
        self.q: D = None
        self.s: C = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: A = None
        self.x: C = None
        self.y: E = None
        self.txt = txt

c = A("c")
l = B("l")
m = C("m")
f = D("f")
i = E("i")
j = F("j")
n = D("n")
e = A("e")
h = C("h")
k = C("k")

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: E = None
        self.q: D = None
        self.s: C = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: A = None
        self.x: C = None
        self.y: E = None
        self.txt = txt

c = A("c")
l = B("l")
m = C("m")
f = D("f")
i = E("i")
j = F("j")
n = D("n")
e = A("e")
h = C("h")
k = C("k")

c.t = l
l.x = h
l.o = f
l.s = e
l.t = n
l.z = c
l.y = i
m.t = e
m.s = e
m.v = h
m.z = i
f.x = l
f.v = i
f.q = n
f.s = k
f.r = h
i.v = l
i.q = l
i.z = n
i.o = k
i.s = j
j.r = i
j.y = i
j.p = c
j.x = h
n.x = l
n.v = i
n.q = f
n.s = h
n.r = m
e.t = l
h.t = c
h.s = c
h.v = k
h.z = i
k.t = e
k.v = h
k.z = i
k.s = c
assert m.v.v.t.t.x.t.t.txt == "l"