class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: J = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: H = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: C = None
        self.z: F = None
        self.t: I = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: G = None
        self.r: C = None
        self.w: F = None
        self.x: A = None
        self.u: F = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: H = None
        self.r: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: C = None
        self.z: F = None
        self.t: I = None
        self.q: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: G = None
        self.r: C = None
        self.w: F = None
        self.x: A = None
        self.u: F = None
        self.z: D = None
        self.txt = txt

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

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