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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: A = 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.q: F = None
        self.u: C = None
        self.y: C = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: B = None
        self.t: D = None
        self.x: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: A = 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.q: F = None
        self.u: C = None
        self.y: C = None
        self.t: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: B = None
        self.t: D = None
        self.x: C = None
        self.txt = txt

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

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