class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: H = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: A = None
        self.q: H = None
        self.t: G = None
        self.o: H = None
        self.s: G = None
        self.u: I = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: H = None
        self.q: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: A = None
        self.q: H = None
        self.t: G = None
        self.o: H = None
        self.s: G = None
        self.u: I = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

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

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

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