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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: D = None
        self.p: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: B = None
        self.v: H = None
        self.x: D = None
        self.z: D = None
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: H = None
        self.q: D = None
        self.o: E = None
        self.t: G = None
        self.txt = txt

d = A("d")
f = B("f")
c = C("c")
i = D("i")
b = E("b")
k = F("k")
h = G("h")
m = H("m")
e = I("e")
j = E("j")

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: D = None
        self.p: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: B = None
        self.v: H = None
        self.x: D = None
        self.z: D = None
        self.r: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: H = None
        self.q: D = None
        self.o: E = None
        self.t: G = None
        self.txt = txt

d = A("d")
f = B("f")
c = C("c")
i = D("i")
b = E("b")
k = F("k")
h = G("h")
m = H("m")
e = I("e")
j = E("j")

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