class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: C = None
        self.o: G = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: E = None
        self.y: G = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: B = None
        self.s: B = None
        self.u: D = None
        self.q: I = None
        self.r: C = None
        self.z: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: D = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: H = None
        self.o: B = None
        self.w: C = None
        self.q: C = None
        self.txt = txt

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

j.r = l
j.v = m
j.o = i
j.z = g
b.v = n
m.p = f
m.y = f
m.q = l
m.w = b
m.z = i
m.u = i
m.t = n
m.o = n
l.q = n
l.z = n
l.p = g
l.y = i
g.p = j
g.z = j
g.y = b
g.s = b
g.u = l
g.q = n
g.r = m
f.z = m
f.r = b
i.t = h
i.q = f
i.y = g
i.z = m
i.o = m
i.x = m
i.w = b
i.u = l
i.v = j
h.z = l
h.p = l
h.t = i
n.s = j
n.r = h
n.o = b
n.w = m
n.q = m
assert b.v.o.v.s.z.z.o.q.txt == "
class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: C = None
        self.o: G = None
        self.z: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: E = None
        self.y: G = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: B = None
        self.s: B = None
        self.u: D = None
        self.q: I = None
        self.r: C = None
        self.z: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: D = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.r: H = None
        self.o: B = None
        self.w: C = None
        self.q: C = None
        self.txt = txt

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

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