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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.z: F = None
        self.s: F = None
        self.w: J = None
        self.q: H = None
        self.t: I = None
        self.v: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: H = None
        self.o: D = None
        self.v: I = None
        self.r: I = None
        self.z: G = None
        self.t: I = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: D = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: A = None
        self.r: A = None
        self.t: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: H = None
        self.y: H = None
        self.t: H = None
        self.r: D = None
        self.x: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.z: F = None
        self.s: F = None
        self.w: J = None
        self.q: H = None
        self.t: I = None
        self.v: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: H = None
        self.o: D = None
        self.v: I = None
        self.r: I = None
        self.z: G = None
        self.t: I = None
        self.q: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: D = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: A = None
        self.r: A = None
        self.t: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: B = None
        self.v: H = None
        self.y: H = None
        self.t: H = None
        self.r: D = None
        self.x: G = None
        self.txt = txt

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

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