class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: D = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: H = None
        self.p: I = None
        self.s: H = None
        self.u: E = None
        self.q: I = None
        self.w: H = None
        self.y: F = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: G = None
        self.u: A = None
        self.p: G = None
        self.r: I = None
        self.s: H = None
        self.z: C = None
        self.w: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: A = None
        self.o: C = None
        self.s: D = None
        self.w: A = None
        self.z: F = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: H = None
        self.p: I = None
        self.s: H = None
        self.u: E = None
        self.q: I = None
        self.w: H = None
        self.y: F = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: G = None
        self.u: A = None
        self.p: G = None
        self.r: I = None
        self.s: H = None
        self.z: C = None
        self.w: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: A = None
        self.o: C = None
        self.s: D = None
        self.w: A = None
        self.z: F = None
        self.r: H = None
        self.txt = txt

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

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

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

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