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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: E = None
        self.x: C = None
        self.r: A = None
        self.v: J = None
        self.p: H = None
        self.u: E = None
        self.w: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: B = None
        self.o: F = None
        self.x: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: A = None
        self.v: G = None
        self.p: I = None
        self.t: C = None
        self.s: J = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: A = None
        self.z: I = None
        self.p: I = None
        self.v: H = None
        self.w: D = None
        self.u: I = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: H = None
        self.r: A = None
        self.s: B = None
        self.u: A = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: C = None
        self.o: A = None
        self.w: E = None
        self.u: E = None
        self.x: F = None
        self.p: A = None
        self.s: D = None
        self.txt = txt

c = A("c")
k = B("k")
l = C("l")
f = D("f")
b = E("b")
e = F("e")
j = G("j")
i = H("i")
m = I("m")
h = J("h")

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: E = None
        self.x: C = None
        self.r: A = None
        self.v: J = None
        self.p: H = None
        self.u: E = None
        self.w: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: B = None
        self.o: F = None
        self.x: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: A = None
        self.v: G = None
        self.p: I = None
        self.t: C = None
        self.s: J = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: A = None
        self.z: I = None
        self.p: I = None
        self.v: H = None
        self.w: D = None
        self.u: I = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: H = None
        self.r: A = None
        self.s: B = None
        self.u: A = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.r: C = None
        self.o: A = None
        self.w: E = None
        self.u: E = None
        self.x: F = None
        self.p: A = None
        self.s: D = None
        self.txt = txt

c = A("c")
k = B("k")
l = C("l")
f = D("f")
b = E("b")
e = F("e")
j = G("j")
i = H("i")
m = I("m")
h = J("h")

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