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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: F = None
        self.x: C = None
        self.u: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: J = None
        self.s: H = None
        self.q: F = None
        self.t: C = None
        self.p: B = None
        self.z: F = None
        self.u: A = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: E = None
        self.t: D = None
        self.o: C = None
        self.w: H = None
        self.v: D = None
        self.u: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: D = None
        self.o: G = None
        self.p: F = None
        self.z: H = None
        self.x: J = None
        self.t: D = None
        self.q: J = None
        self.s: H = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: G = None
        self.w: A = None
        self.y: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: F = None
        self.x: C = None
        self.u: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: J = None
        self.s: H = None
        self.q: F = None
        self.t: C = None
        self.p: B = None
        self.z: F = None
        self.u: A = None
        self.r: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: E = None
        self.t: D = None
        self.o: C = None
        self.w: H = None
        self.v: D = None
        self.u: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: D = None
        self.o: G = None
        self.p: F = None
        self.z: H = None
        self.x: J = None
        self.t: D = None
        self.q: J = None
        self.s: H = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: G = None
        self.w: A = None
        self.y: A = None
        self.txt = txt

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

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