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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: E = None
        self.y: C = None
        self.s: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: H = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: I = None
        self.x: E = None
        self.z: D = None
        self.y: E = None
        self.s: C = None
        self.o: H = None
        self.w: B = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: E = None
        self.p: D = None
        self.w: C = None
        self.t: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.u: E = None
        self.y: C = None
        self.s: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: H = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: I = None
        self.x: E = None
        self.z: D = None
        self.y: E = None
        self.s: C = None
        self.o: H = None
        self.w: B = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: E = None
        self.p: D = None
        self.w: C = None
        self.t: H = None
        self.txt = txt

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

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