class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: H = None
        self.x: G = None
        self.q: F = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: H = None
        self.x: G = None
        self.o: H = None
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: F = None
        self.o: F = None
        self.x: B = None
        self.r: F = None
        self.v: C = None
        self.y: C = None
        self.u: B = None
        self.q: F = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: A = None
        self.x: H = None
        self.p: B = None
        self.w: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: H = None
        self.x: G = None
        self.o: H = None
        self.q: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: F = None
        self.o: F = None
        self.x: B = None
        self.r: F = None
        self.v: C = None
        self.y: C = None
        self.u: B = None
        self.q: F = None
        self.z: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: A = None
        self.x: H = None
        self.p: B = None
        self.w: I = None
        self.txt = txt

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

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