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

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

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: H = None
        self.o: I = None
        self.w: J = None
        self.q: G = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: G = None
        self.w: D = None
        self.z: G = None
        self.y: J = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: H = None
        self.x: G = None
        self.p: G = None
        self.q: G = None
        self.w: A = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: C = None
        self.y: D = None
        self.w: F = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: C = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: A = None
        self.r: F = None
        self.x: J = None
        self.z: E = None
        self.p: E = None
        self.y: J = None
        self.q: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: C = None
        self.s: A = None
        self.v: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: H = None
        self.o: I = None
        self.w: J = None
        self.q: G = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: G = None
        self.w: D = None
        self.z: G = None
        self.y: J = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: H = None
        self.x: G = None
        self.p: G = None
        self.q: G = None
        self.w: A = None
        self.z: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.u: C = None
        self.y: D = None
        self.w: F = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: C = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: A = None
        self.r: F = None
        self.x: J = None
        self.z: E = None
        self.p: E = None
        self.y: J = None
        self.q: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: C = None
        self.s: A = None
        self.v: D = None
        self.txt = txt

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

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