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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: D = None
        self.r: A = None
        self.q: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: I = None
        self.s: H = None
        self.t: C = None
        self.x: J = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: J = None
        self.o: F = None
        self.w: G = None
        self.q: B = None
        self.t: F = None
        self.z: G = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: G = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: F = None
        self.y: I = None
        self.s: J = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: F = None
        self.s: D = None
        self.u: J = None
        self.q: J = None
        self.p: F = None
        self.r: C = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: D = None
        self.r: A = None
        self.q: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: I = None
        self.s: H = None
        self.t: C = None
        self.x: J = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: J = None
        self.o: F = None
        self.w: G = None
        self.q: B = None
        self.t: F = None
        self.z: G = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: G = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: F = None
        self.y: I = None
        self.s: J = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: F = None
        self.s: D = None
        self.u: J = None
        self.q: J = None
        self.p: F = None
        self.r: C = None
        self.v: F = None
        self.txt = txt

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

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

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