class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: D = None
        self.z: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: I = None
        self.r: D = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: F = None
        self.z: H = None
        self.q: C = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: H = None
        self.w: D = None
        self.o: B = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: C = None
        self.s: B = None
        self.z: D = None
        self.u: C = None
        self.q: E = None
        self.w: C = None
        self.p: E = None
        self.x: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: I = None
        self.r: D = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: F = None
        self.z: H = None
        self.q: C = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.s: H = None
        self.w: D = None
        self.o: B = None
        self.p: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: C = None
        self.s: B = None
        self.z: D = None
        self.u: C = None
        self.q: E = None
        self.w: C = None
        self.p: E = None
        self.x: D = None
        self.txt = txt

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

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

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