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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: E = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: H = None
        self.t: A = None
        self.y: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: E = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: H = None
        self.t: A = None
        self.y: B = None
        self.txt = txt

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

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

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