class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: F = None
        self.r: B = None
        self.x: C = None
        self.w: F = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: H = None
        self.q: B = None
        self.x: G = None
        self.p: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: H = None
        self.q: B = None
        self.x: G = None
        self.p: B = None
        self.txt = txt

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

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

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