class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: I = None
        self.v: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: I = None
        self.q: I = None
        self.u: A = None
        self.x: G = None
        self.v: E = None
        self.z: J = None
        self.t: G = None
        self.s: F = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: H = None
        self.t: C = None
        self.x: J = None
        self.o: J = None
        self.v: D = None
        self.y: H = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: C = None
        self.v: A = None
        self.o: D = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: I = None
        self.q: I = None
        self.u: A = None
        self.x: G = None
        self.v: E = None
        self.z: J = None
        self.t: G = None
        self.s: F = None
        self.p: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: H = None
        self.t: C = None
        self.x: J = None
        self.o: J = None
        self.v: D = None
        self.y: H = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: C = None
        self.v: A = None
        self.o: D = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: C = None
        self.txt = txt

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

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