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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: H = None
        self.r: G = None
        self.p: F = None
        self.o: J = None
        self.x: I = None
        self.s: F = None
        self.v: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: J = None
        self.z: A = None
        self.x: I = None
        self.p: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: D = None
        self.s: G = None
        self.v: B = None
        self.q: J = None
        self.p: E = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: G = None
        self.s: A = None
        self.v: G = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.t: H = None
        self.r: G = None
        self.p: F = None
        self.o: J = None
        self.x: I = None
        self.s: F = None
        self.v: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.s: J = None
        self.z: A = None
        self.x: I = None
        self.p: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: D = None
        self.s: G = None
        self.v: B = None
        self.q: J = None
        self.p: E = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: G = None
        self.s: A = None
        self.v: G = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: F = None
        self.txt = txt

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

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