class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: I = None
        self.t: C = None
        self.r: C = None
        self.x: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: E = None
        self.p: J = None
        self.z: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: I = None
        self.w: D = None
        self.s: B = None
        self.o: F = None
        self.y: H = None
        self.t: F = None
        self.z: F = None
        self.q: C = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: A = None
        self.r: J = None
        self.u: C = None
        self.w: B = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: C = None
        self.s: E = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: B = None
        self.v: H = None
        self.y: F = None
        self.s: E = None
        self.x: G = None
        self.q: E = None
        self.w: E = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.w: G = None
        self.y: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: E = None
        self.p: J = None
        self.z: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: I = None
        self.w: D = None
        self.s: B = None
        self.o: F = None
        self.y: H = None
        self.t: F = None
        self.z: F = None
        self.q: C = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.v: A = None
        self.r: J = None
        self.u: C = None
        self.w: B = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: C = None
        self.s: E = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.r: B = None
        self.v: H = None
        self.y: F = None
        self.s: E = None
        self.x: G = None
        self.q: E = None
        self.w: E = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.r: I = None
        self.w: G = None
        self.y: D = None
        self.txt = txt

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

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