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

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: B = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: A = None
        self.w: B = None
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: D = None
        self.u: G = None
        self.o: D = None
        self.v: G = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: B = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: A = None
        self.w: B = None
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: D = None
        self.u: G = None
        self.o: D = None
        self.v: G = None
        self.s: A = None
        self.txt = txt

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

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