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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: D = None
        self.o: H = None
        self.x: A = None
        self.q: H = None
        self.s: I = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: A = None
        self.w: D = None
        self.y: B = None
        self.t: A = None
        self.x: G = None
        self.u: A = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: G = None
        self.p: B = None
        self.t: C = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: D = None
        self.o: H = None
        self.x: A = None
        self.q: H = None
        self.s: I = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: A = None
        self.w: D = None
        self.y: B = None
        self.t: A = None
        self.x: G = None
        self.u: A = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: G = None
        self.p: B = None
        self.t: C = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

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