class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: I = None
        self.p: D = None
        self.y: C = None
        self.x: B = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: I = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: J = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.o: A = None
        self.y: G = None
        self.r: C = None
        self.x: J = None
        self.q: G = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: A = None
        self.x: A = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: A = None
        self.q: B = None
        self.t: H = None
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: F = None
        self.t: B = None
        self.p: E = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: A = None
        self.v: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: I = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: J = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.o: A = None
        self.y: G = None
        self.r: C = None
        self.x: J = None
        self.q: G = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: A = None
        self.x: A = None
        self.s: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: A = None
        self.q: B = None
        self.t: H = None
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: F = None
        self.t: B = None
        self.p: E = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: A = None
        self.v: G = None
        self.txt = txt

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

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

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