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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: H = None
        self.v: J = None
        self.z: A = None
        self.p: I = None
        self.w: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: D = None
        self.p: B = None
        self.t: B = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: E = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: E = None
        self.t: E = None
        self.r: H = None
        self.z: H = None
        self.p: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: J = None
        self.x: D = None
        self.p: G = None
        self.o: E = None
        self.v: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: I = None
        self.w: I = None
        self.q: B = None
        self.x: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: H = None
        self.v: J = None
        self.z: A = None
        self.p: I = None
        self.w: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: D = None
        self.p: B = None
        self.t: B = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: E = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: E = None
        self.t: E = None
        self.r: H = None
        self.z: H = None
        self.p: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: J = None
        self.x: D = None
        self.p: G = None
        self.o: E = None
        self.v: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: I = None
        self.w: I = None
        self.q: B = None
        self.x: C = None
        self.txt = txt

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

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