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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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

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