class A:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: E = None
        self.s: B = None
        self.t: F = None
        self.x: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: C = None
        self.w: I = None
        self.p: E = None
        self.z: C = None
        self.q: C = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: C = None
        self.w: I = None
        self.p: E = None
        self.z: C = None
        self.q: C = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

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

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