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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: F = None
        self.v: H = None
        self.x: A = None
        self.w: A = None
        self.p: D = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: C = None
        self.s: G = None
        self.x: H = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: F = None
        self.q: A = None
        self.r: D = None
        self.t: F = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: C = None
        self.z: D = None
        self.o: G = None
        self.x: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: F = None
        self.v: H = None
        self.x: A = None
        self.w: A = None
        self.p: D = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: C = None
        self.s: G = None
        self.x: H = None
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: F = None
        self.q: A = None
        self.r: D = None
        self.t: F = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: C = None
        self.z: D = None
        self.o: G = None
        self.x: G = None
        self.txt = txt

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

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