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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: B = None
        self.q: D = None
        self.p: E = None
        self.t: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: C = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: B = None
        self.z: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: B = None
        self.q: D = None
        self.p: E = None
        self.t: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.x: C = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: B = None
        self.z: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: D = None
        self.txt = txt

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

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