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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: E = None
        self.v: C = None
        self.q: C = None
        self.x: F = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: I = None
        self.o: E = None
        self.x: D = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: J = None
        self.o: H = None
        self.x: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: E = None
        self.v: C = None
        self.q: C = None
        self.x: F = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: I = None
        self.o: E = None
        self.x: D = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: J = None
        self.o: H = None
        self.x: B = None
        self.txt = txt

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

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

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