class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: H = None
        self.x: B = None
        self.o: B = None
        self.q: H = None
        self.v: E = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: F = None
        self.y: E = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: E = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.y: E = None
        self.r: G = None
        self.o: H = None
        self.p: B = None
        self.u: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: F = None
        self.y: E = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.w: E = None
        self.s: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.y: E = None
        self.r: G = None
        self.o: H = None
        self.p: B = None
        self.u: E = None
        self.txt = txt

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

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