class A:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: E = None
        self.y: H = None
        self.w: J = None
        self.z: F = None
        self.u: C = None
        self.x: H = None
        self.s: E = None
        self.t: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: A = None
        self.u: E = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: J = None
        self.p: D = None
        self.s: C = None
        self.o: F = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.z: H = None
        self.t: H = None
        self.r: C = None
        self.x: H = None
        self.p: C = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: E = None
        self.s: B = None
        self.y: A = None
        self.p: F = None
        self.o: C = None
        self.v: I = None
        self.x: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: B = None
        self.r: D = None
        self.v: A = None
        self.x: D = None
        self.w: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: A = None
        self.u: E = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: J = None
        self.p: D = None
        self.s: C = None
        self.o: F = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.z: H = None
        self.t: H = None
        self.r: C = None
        self.x: H = None
        self.p: C = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: E = None
        self.s: B = None
        self.y: A = None
        self.p: F = None
        self.o: C = None
        self.v: I = None
        self.x: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: B = None
        self.r: D = None
        self.v: A = None
        self.x: D = None
        self.w: C = None
        self.txt = txt

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

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