class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: E = None
        self.u: C = None
        self.x: G = None
        self.r: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: C = None
        self.r: G = None
        self.s: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: A = None
        self.u: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: D = None
        self.w: D = None
        self.r: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: E = None
        self.u: C = None
        self.x: G = None
        self.r: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: C = None
        self.r: G = None
        self.s: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: A = None
        self.u: C = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: D = None
        self.w: D = None
        self.r: D = None
        self.txt = txt

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

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