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

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: G = None
        self.o: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: I = None
        self.y: A = None
        self.o: H = None
        self.p: G = None
        self.v: D = None
        self.z: I = None
        self.s: I = None
        self.u: J = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: H = None
        self.v: F = None
        self.y: E = None
        self.u: E = None
        self.z: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: G = None
        self.x: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: G = None
        self.o: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: I = None
        self.y: A = None
        self.o: H = None
        self.p: G = None
        self.v: D = None
        self.z: I = None
        self.s: I = None
        self.u: J = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: H = None
        self.v: F = None
        self.y: E = None
        self.u: E = None
        self.z: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.v: G = None
        self.x: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

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