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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: E = None
        self.y: I = None
        self.o: F = None
        self.s: G = None
        self.x: I = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: I = None
        self.p: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: C = None
        self.x: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: E = None
        self.t: A = None
        self.x: G = None
        self.v: A = None
        self.s: E = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: E = None
        self.t: I = None
        self.q: E = None
        self.o: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: E = None
        self.y: I = None
        self.o: F = None
        self.s: G = None
        self.x: I = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: F = None
        self.r: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: I = None
        self.p: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: C = None
        self.x: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: E = None
        self.t: A = None
        self.x: G = None
        self.v: A = None
        self.s: E = None
        self.q: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: E = None
        self.t: I = None
        self.q: E = None
        self.o: F = None
        self.txt = txt

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

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