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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: B = None
        self.r: B = None
        self.o: F = None
        self.p: A = None
        self.s: A = None
        self.w: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: I = None
        self.v: I = None
        self.o: I = None
        self.s: D = None
        self.r: I = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: B = None
        self.r: B = None
        self.o: F = None
        self.p: A = None
        self.s: A = None
        self.w: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: I = None
        self.v: I = None
        self.o: I = None
        self.s: D = None
        self.r: I = None
        self.p: H = None
        self.txt = txt

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

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

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

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