class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: G = None
        self.s: F = None
        self.t: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: G = None
        self.u: J = None
        self.s: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: B = None
        self.w: G = None
        self.q: D = None
        self.y: B = None
        self.s: C = None
        self.v: B = None
        self.o: D = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: I = None
        self.x: H = None
        self.z: F = None
        self.q: A = None
        self.y: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: C = None
        self.v: E = None
        self.y: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: G = None
        self.r: C = None
        self.q: H = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: G = None
        self.u: J = None
        self.s: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: B = None
        self.w: G = None
        self.q: D = None
        self.y: B = None
        self.s: C = None
        self.v: B = None
        self.o: D = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: I = None
        self.x: H = None
        self.z: F = None
        self.q: A = None
        self.y: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: C = None
        self.v: E = None
        self.y: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: G = None
        self.r: C = None
        self.q: H = None
        self.z: C = None
        self.txt = txt

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

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