class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.z: D = None
        self.o: E = None
        self.y: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: G = None
        self.v: A = None
        self.t: F = None
        self.o: B = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: C = None
        self.q: J = None
        self.w: F = None
        self.p: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: F = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: G = None
        self.v: A = None
        self.t: F = None
        self.o: B = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: C = None
        self.q: J = None
        self.w: F = None
        self.p: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.t: F = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

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