class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: E = None
        self.x: C = None
        self.o: C = None
        self.w: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: A = None
        self.t: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: A = None
        self.v: C = None
        self.o: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: A = None
        self.t: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.p: A = None
        self.v: C = None
        self.o: C = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

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