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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: H = None
        self.o: G = None
        self.x: E = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: H = None
        self.s: G = None
        self.o: E = None
        self.q: A = None
        self.t: H = None
        self.x: C = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: B = None
        self.y: A = None
        self.z: G = None
        self.p: D = None
        self.u: B = None
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: C = None
        self.p: E = None
        self.u: B = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: H = None
        self.o: G = None
        self.x: E = None
        self.s: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: H = None
        self.s: G = None
        self.o: E = None
        self.q: A = None
        self.t: H = None
        self.x: C = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: B = None
        self.y: A = None
        self.z: G = None
        self.p: D = None
        self.u: B = None
        self.x: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: C = None
        self.p: E = None
        self.u: B = None
        self.q: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

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

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