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

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: F = None
        self.t: G = None
        self.w: A = None
        self.p: E = None
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.q: G = None
        self.t: D = None
        self.v: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: E = None
        self.o: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: J = None
        self.v: J = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: F = None
        self.t: G = None
        self.w: A = None
        self.p: E = None
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.q: G = None
        self.t: D = None
        self.v: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: E = None
        self.o: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: J = None
        self.v: J = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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