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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: E = None
        self.y: A = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: D = None
        self.v: H = None
        self.y: H = None
        self.t: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: E = None
        self.y: A = None
        self.x: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: D = None
        self.v: H = None
        self.y: H = None
        self.t: F = None
        self.txt = txt

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

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

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

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