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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: G = None
        self.w: G = None
        self.x: A = None
        self.t: B = None
        self.o: G = None
        self.v: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: B = None
        self.s: I = None
        self.t: A = None
        self.o: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: G = None
        self.w: G = None
        self.x: A = None
        self.t: B = None
        self.o: G = None
        self.v: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: B = None
        self.s: I = None
        self.t: A = None
        self.o: B = None
        self.txt = txt

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

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

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