class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: C = None
        self.v: C = None
        self.w: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: A = None
        self.o: H = None
        self.x: A = None
        self.v: B = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: H = None
        self.x: C = None
        self.o: D = None
        self.u: D = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: D = None
        self.x: C = None
        self.p: D = None
        self.r: C = None
        self.v: E = None
        self.y: G = None
        self.t: E = None
        self.txt = txt

k = A("k")
m = B("m")
n = C("n")
j = D("j")
i = E("i")
a = F("a")
f = G("f")
l = H("l")
c = F("c")

k.p = l
k.x = n
k.v = n
k.w = n
m.o = c
m.s = i
m.z = i
m.q = f
m.v = a
m.r = j
n.s = i
j.t = l
j.y = k
i.t = n
i.w = k
a.z = c
a.r = k
a.x = k
a.o = l
a.v = m
a.t = i
f.w = i
f.s = l
f.x = n
f.o = j
f.u = j
f.y = k
l.q = f
l.y = f
l.s = j
l.p = j
l.x = n
l.r = n
l.v = i
l.t = i
c.z = a
c.r = k
c.x = k
c.o = l
c.v = m
c.t = i
assert n.s.w.p.txt == "
class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: C = None
        self.v: C = None
        self.w: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: A = None
        self.o: H = None
        self.x: A = None
        self.v: B = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: H = None
        self.x: C = None
        self.o: D = None
        self.u: D = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: D = None
        self.x: C = None
        self.p: D = None
        self.r: C = None
        self.v: E = None
        self.y: G = None
        self.t: E = None
        self.txt = txt

k = A("k")
m = B("m")
n = C("n")
j = D("j")
i = E("i")
a = F("a")
f = G("f")
l = H("l")
c = F("c")

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