class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: F = None
        self.v: E = None
        self.r: B = None
        self.o: B = None
        self.u: I = None
        self.w: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: D = None
        self.w: H = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: F = None
        self.v: I = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.u: D = None
        self.z: C = None
        self.t: A = None
        self.v: I = None
        self.y: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: I = None
        self.r: G = None
        self.s: E = None
        self.o: F = None
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: G = None
        self.q: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: D = None
        self.w: H = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: F = None
        self.v: I = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.u: D = None
        self.z: C = None
        self.t: A = None
        self.v: I = None
        self.y: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: I = None
        self.r: G = None
        self.s: E = None
        self.o: F = None
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: G = None
        self.q: H = None
        self.txt = txt

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

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