class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: E = None
        self.t: H = None
        self.s: F = None
        self.p: G = None
        self.x: J = None
        self.w: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: F = None
        self.q: J = None
        self.s: H = None
        self.o: C = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.q: A = None
        self.z: A = None
        self.t: J = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: F = None
        self.z: A = None
        self.x: B = None
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: J = None
        self.y: E = None
        self.z: G = None
        self.w: G = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: F = None
        self.q: J = None
        self.s: H = None
        self.o: C = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: J = None
        self.q: A = None
        self.z: A = None
        self.t: J = None
        self.o: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: F = None
        self.z: A = None
        self.x: B = None
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.p: J = None
        self.y: E = None
        self.z: G = None
        self.w: G = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: D = None
        self.txt = txt

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

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