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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: G = None
        self.z: G = None
        self.q: C = None
        self.u: F = None
        self.w: D = None
        self.r: C = None
        self.x: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: B = None
        self.p: H = None
        self.v: D = None
        self.q: D = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.v: G = None
        self.z: G = None
        self.q: C = None
        self.u: F = None
        self.w: D = None
        self.r: C = None
        self.x: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: B = None
        self.p: H = None
        self.v: D = None
        self.q: D = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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