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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: I = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: H = None
        self.s: G = None
        self.y: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: G = None
        self.y: D = None
        self.x: I = None
        self.w: E = None
        self.s: E = None
        self.txt = txt

e = A("e")
h = B("h")
j = C("j")
c = D("c")
i = E("i")
k = F("k")
m = G("m")
b = H("b")
g = I("g")
n = J("n")

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: I = None
        self.p: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: H = None
        self.s: G = None
        self.y: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: G = None
        self.y: D = None
        self.x: I = None
        self.w: E = None
        self.s: E = None
        self.txt = txt

e = A("e")
h = B("h")
j = C("j")
c = D("c")
i = E("i")
k = F("k")
m = G("m")
b = H("b")
g = I("g")
n = J("n")

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