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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: D = None
        self.p: J = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: C = None
        self.s: G = None
        self.p: H = None
        self.q: A = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: C = None
        self.z: D = None
        self.q: E = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: A = None
        self.r: H = None
        self.p: I = None
        self.z: C = None
        self.t: F = None
        self.o: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: D = None
        self.p: J = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: C = None
        self.s: G = None
        self.p: H = None
        self.q: A = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.w: C = None
        self.z: D = None
        self.q: E = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: A = None
        self.r: H = None
        self.p: I = None
        self.z: C = None
        self.t: F = None
        self.o: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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