class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: I = None
        self.v: E = None
        self.w: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: D = None
        self.p: C = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: B = None
        self.s: A = None
        self.u: F = None
        self.q: G = None
        self.t: A = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.t: D = None
        self.y: A = None
        self.txt = txt

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

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

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

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

k = A("k")
m = B("m")
n = C("n")
h = D("h")
g = E("g")
a = F("a")
l = G("l")
c = H("c")
j = I("j")

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: D = None
        self.p: C = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: B = None
        self.s: A = None
        self.u: F = None
        self.q: G = None
        self.t: A = None
        self.o: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: I = None
        self.t: D = None
        self.y: A = None
        self.txt = txt

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

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

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

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

k = A("k")
m = B("m")
n = C("n")
h = D("h")
g = E("g")
a = F("a")
l = G("l")
c = H("c")
j = I("j")

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