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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: C = None
        self.x: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: D = None
        self.p: C = None
        self.t: I = None
        self.o: D = None
        self.z: D = None
        self.u: D = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: C = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: C = None
        self.x: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.v: D = None
        self.p: C = None
        self.t: I = None
        self.o: D = None
        self.z: D = None
        self.u: D = None
        self.q: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: C = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

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