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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: D = None
        self.q: F = None
        self.w: C = None
        self.o: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: D = None
        self.w: E = None
        self.o: F = None
        self.u: D = None
        self.z: C = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: G = None
        self.r: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: A = None
        self.s: B = None
        self.q: E = None
        self.v: A = None
        self.txt = txt

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

d = A("d")
e = B("e")
h = C("h")
m = D("m")
b = E("b")
k = F("k")
j = G("j")
n = H("n")
g = D("g")
f = E("f")

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: D = None
        self.q: F = None
        self.w: C = None
        self.o: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: D = None
        self.w: E = None
        self.o: F = None
        self.u: D = None
        self.z: C = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: G = None
        self.r: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: A = None
        self.s: B = None
        self.q: E = None
        self.v: A = None
        self.txt = txt

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

d = A("d")
e = B("e")
h = C("h")
m = D("m")
b = E("b")
k = F("k")
j = G("j")
n = H("n")
g = D("g")
f = E("f")

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