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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: A = None
        self.z: D = None
        self.p: D = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: A = None
        self.z: D = None
        self.p: D = None
        self.y: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: B = None
        self.txt = txt

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

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

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