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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: I = None
        self.w: G = None
        self.z: F = None
        self.t: H = None
        self.q: B = None
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: C = None
        self.t: A = None
        self.w: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: B = None
        self.u: B = None
        self.p: I = None
        self.q: I = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: I = None
        self.w: G = None
        self.z: F = None
        self.t: H = None
        self.q: B = None
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: C = None
        self.t: A = None
        self.w: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: B = None
        self.u: B = None
        self.p: I = None
        self.q: I = None
        self.w: C = None
        self.txt = txt

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

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