class A:
    def __init__(self, txt: str):
        self.o: J = None
        self.s: I = None
        self.t: E = None
        self.r: J = None
        self.y: I = None
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: B = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: C = None
        self.t: I = None
        self.v: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: B = None
        self.t: B = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: C = None
        self.x: C = None
        self.w: I = None
        self.v: G = None
        self.txt = txt

j = A("j")
d = B("d")
f = C("f")
k = D("k")
i = E("i")
h = F("h")
m = G("m")
e = H("e")
a = I("a")
g = J("g")

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

class B:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: B = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: C = None
        self.t: I = None
        self.v: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: B = None
        self.t: B = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: C = None
        self.x: C = None
        self.w: I = None
        self.v: G = None
        self.txt = txt

j = A("j")
d = B("d")
f = C("f")
k = D("k")
i = E("i")
h = F("h")
m = G("m")
e = H("e")
a = I("a")
g = J("g")

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