class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: I = None
        self.o: G = None
        self.y: H = None
        self.z: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: C = None
        self.v: A = None
        self.p: D = None
        self.w: E = None
        self.s: G = None
        self.t: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: I = None
        self.o: G = None
        self.y: H = None
        self.z: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: C = None
        self.v: A = None
        self.p: D = None
        self.w: E = None
        self.s: G = None
        self.t: D = None
        self.txt = txt

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

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