class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: E = None
        self.r: F = None
        self.x: B = None
        self.u: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: C = None
        self.p: B = None
        self.s: I = None
        self.z: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: B = None
        self.u: E = None
        self.o: I = None
        self.y: D = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: F = None
        self.p: G = None
        self.x: F = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: G = None
        self.v: I = None
        self.z: H = None
        self.w: B = None
        self.r: H = None
        self.t: E = None
        self.s: A = None
        self.q: E = None
        self.y: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.y: C = None
        self.p: B = None
        self.s: I = None
        self.z: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: B = None
        self.u: E = None
        self.o: I = None
        self.y: D = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: F = None
        self.p: G = None
        self.x: F = None
        self.y: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: G = None
        self.v: I = None
        self.z: H = None
        self.w: B = None
        self.r: H = None
        self.t: E = None
        self.s: A = None
        self.q: E = None
        self.y: C = None
        self.txt = txt

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

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