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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: D = None
        self.w: A = None
        self.x: I = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: I = None
        self.p: A = None
        self.w: C = None
        self.t: F = None
        self.v: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: C = None
        self.u: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: D = None
        self.v: A = None
        self.q: A = None
        self.o: A = None
        self.s: B = None
        self.p: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: D = None
        self.w: A = None
        self.x: I = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: I = None
        self.p: A = None
        self.w: C = None
        self.t: F = None
        self.v: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: C = None
        self.u: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: D = None
        self.v: A = None
        self.q: A = None
        self.o: A = None
        self.s: B = None
        self.p: G = None
        self.txt = txt

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

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