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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: B = None
        self.v: A = None
        self.p: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: E = None
        self.s: E = None
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: B = None
        self.v: A = None
        self.p: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: E = None
        self.s: E = None
        self.u: C = None
        self.txt = txt

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

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