class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: G = None
        self.o: G = None
        self.u: D = None
        self.w: F = None
        self.x: B = None
        self.q: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: G = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: E = None
        self.x: A = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: B = None
        self.w: E = None
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: B = None
        self.u: D = None
        self.y: A = None
        self.p: A = None
        self.z: G = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: D = None
        self.z: D = None
        self.o: D = None
        self.w: G = None
        self.q: A = None
        self.txt = txt

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

g = A("g")
c = B("c")
n = C("n")
i = D("i")
m = E("m")
d = F("d")
b = G("b")
e = B("e")

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

class B:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: G = None
        self.z: G = None
        self.p: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.y: E = None
        self.x: A = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: B = None
        self.w: E = None
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: B = None
        self.u: D = None
        self.y: A = None
        self.p: A = None
        self.z: G = None
        self.r: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: D = None
        self.z: D = None
        self.o: D = None
        self.w: G = None
        self.q: A = None
        self.txt = txt

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

g = A("g")
c = B("c")
n = C("n")
i = D("i")
m = E("m")
d = F("d")
b = G("b")
e = B("e")

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