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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: C = None
        self.x: E = None
        self.u: D = None
        self.o: A = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: D = None
        self.p: C = None
        self.t: D = None
        self.s: B = None
        self.q: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: B = None
        self.w: A = None
        self.p: C = None
        self.u: B = None
        self.y: D = None
        self.txt = txt

k = A("k")
l = B("l")
a = C("a")
h = D("h")
n = E("n")
d = F("d")
j = C("j")
i = E("i")
b = A("b")
m = D("m")

k.v = d
k.o = n
k.x = n
k.t = l
k.y = i
l.p = i
l.y = j
l.x = n
l.u = m
l.o = k
l.v = b
a.u = i
h.v = d
h.y = m
h.t = m
h.p = j
h.s = l
h.q = a
n.t = m
d.z = m
d.s = l
d.u = l
d.w = k
d.p = j
d.y = h
j.u = n
i.t = m
b.v = d
b.o = n
b.y = n
b.x = n
b.t = l
m.v = d
m.y = h
m.t = h
m.p = a
m.q = a
m.s = l
assert k.y.t.q.u.t.s.txt == "
class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: E = None
        self.t: B = None
        self.y: E = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: C = None
        self.x: E = None
        self.u: D = None
        self.o: A = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: D = None
        self.p: C = None
        self.t: D = None
        self.s: B = None
        self.q: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: B = None
        self.w: A = None
        self.p: C = None
        self.u: B = None
        self.y: D = None
        self.txt = txt

k = A("k")
l = B("l")
a = C("a")
h = D("h")
n = E("n")
d = F("d")
j = C("j")
i = E("i")
b = A("b")
m = D("m")

k.v = d
k.o = n
k.x = n
k.t = l
k.y = i
l.p = i
l.y = j
l.x = n
l.u = m
l.o = k
l.v = b
a.u = i
h.v = d
h.y = m
h.t = m
h.p = j
h.s = l
h.q = a
n.t = m
d.z = m
d.s = l
d.u = l
d.w = k
d.p = j
d.y = h
j.u = n
i.t = m
b.v = d
b.o = n
b.y = n
b.x = n
b.t = l
m.v = d
m.y = h
m.t = h
m.p = a
m.q = a
m.s = l
assert k.y.t.q.u.t.s.txt == "l"