class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: A = None
        self.p: F = None
        self.t: B = None
        self.x: D = None
        self.w: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: H = None
        self.u: E = None
        self.y: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: D = None
        self.s: C = None
        self.q: H = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: H = None
        self.u: E = None
        self.y: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: D = None
        self.s: C = None
        self.q: H = None
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

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