class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: H = None
        self.s: E = None
        self.v: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: D = None
        self.s: F = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: G = None
        self.q: C = None
        self.o: F = None
        self.r: C = None
        self.w: E = None
        self.z: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.y: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: D = None
        self.s: F = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: G = None
        self.q: C = None
        self.o: F = None
        self.r: C = None
        self.w: E = None
        self.z: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.y: E = None
        self.txt = txt

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

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