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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: F = None
        self.x: B = None
        self.o: D = None
        self.p: H = None
        self.t: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: E = None
        self.r: D = None
        self.t: A = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: F = None
        self.x: B = None
        self.o: D = None
        self.p: H = None
        self.t: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: E = None
        self.r: D = None
        self.t: A = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

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

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