class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: H = None
        self.u: A = None
        self.t: H = None
        self.o: C = None
        self.q: G = None
        self.v: H = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: D = None
        self.v: G = None
        self.u: B = None
        self.r: D = None
        self.y: A = None
        self.t: D = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: B = None
        self.w: F = None
        self.s: E = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: H = None
        self.u: A = None
        self.t: H = None
        self.o: C = None
        self.q: G = None
        self.v: H = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: D = None
        self.v: G = None
        self.u: B = None
        self.r: D = None
        self.y: A = None
        self.t: D = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: B = None
        self.w: F = None
        self.s: E = None
        self.r: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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