class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: F = None
        self.y: C = None
        self.t: E = None
        self.w: F = None
        self.u: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: H = None
        self.s: A = None
        self.y: G = None
        self.x: G = None
        self.u: F = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: H = None
        self.w: H = None
        self.q: E = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: F = None
        self.y: H = None
        self.t: A = None
        self.p: G = None
        self.r: B = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: C = None
        self.p: H = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: B = None
        self.r: D = None
        self.t: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: H = None
        self.s: A = None
        self.y: G = None
        self.x: G = None
        self.u: F = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: H = None
        self.w: H = None
        self.q: E = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: F = None
        self.y: H = None
        self.t: A = None
        self.p: G = None
        self.r: B = None
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.u: C = None
        self.p: H = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: B = None
        self.r: D = None
        self.t: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: H = None
        self.txt = txt

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

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