class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: F = None
        self.u: C = None
        self.o: D = None
        self.w: G = None
        self.z: F = None
        self.s: F = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: A = None
        self.t: D = None
        self.x: E = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: A = None
        self.t: D = None
        self.x: E = None
        self.w: C = None
        self.z: C = None
        self.txt = txt

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

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

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

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