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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: E = None
        self.p: E = None
        self.o: F = None
        self.s: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: A = None
        self.u: A = None
        self.x: A = None
        self.txt = txt

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

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

j = A("j")
i = B("i")
d = C("d")
a = D("a")
c = E("c")
m = F("m")
e = G("e")
f = D("f")
g = G("g")
k = C("k")

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.w: E = None
        self.p: E = None
        self.o: F = None
        self.s: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: A = None
        self.u: A = None
        self.x: A = None
        self.txt = txt

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

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

j = A("j")
i = B("i")
d = C("d")
a = D("a")
c = E("c")
m = F("m")
e = G("e")
f = D("f")
g = G("g")
k = C("k")

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