class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: F = None
        self.v: J = None
        self.s: C = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: I = None
        self.v: D = None
        self.q: I = None
        self.w: A = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.s: G = None
        self.w: F = None
        self.q: J = None
        self.r: G = None
        self.y: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.o: I = None
        self.v: D = None
        self.q: I = None
        self.w: A = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.s: G = None
        self.w: F = None
        self.q: J = None
        self.r: G = None
        self.y: F = None
        self.txt = txt

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

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

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