class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: D = None
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: I = None
        self.y: I = None
        self.u: A = None
        self.w: D = None
        self.q: G = None
        self.v: D = None
        self.p: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: F = None
        self.u: D = None
        self.r: D = None
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: I = None
        self.y: I = None
        self.u: A = None
        self.w: D = None
        self.q: G = None
        self.v: D = None
        self.p: I = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: F = None
        self.u: D = None
        self.r: D = None
        self.o: B = None
        self.txt = txt

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

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