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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: B = None
        self.p: G = None
        self.s: J = None
        self.v: D = None
        self.w: A = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: A = None
        self.y: G = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: G = None
        self.y: E = None
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: J = None
        self.x: H = None
        self.y: B = None
        self.s: A = None
        self.v: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: B = None
        self.p: G = None
        self.s: J = None
        self.v: D = None
        self.w: A = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: A = None
        self.y: G = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: G = None
        self.y: E = None
        self.x: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: J = None
        self.x: H = None
        self.y: B = None
        self.s: A = None
        self.v: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: A = None
        self.txt = txt

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

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