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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: C = None
        self.v: B = None
        self.y: F = None
        self.s: G = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: A = None
        self.z: C = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: A = None
        self.w: A = None
        self.t: E = None
        self.u: B = None
        self.p: E = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: E = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

b = A("b")
e = B("e")
d = C("d")
l = D("l")
m = E("m")
f = F("f")
a = G("a")
n = A("n")
c = B("c")
h = C("h")

b.o = m
b.r = m
b.v = n
b.x = n
e.t = l
e.r = d
e.v = c
e.y = f
e.s = a
e.u = m
d.s = l
d.q = c
l.t = b
l.p = a
m.o = d
m.q = b
m.z = h
m.y = e
f.o = a
f.q = a
f.y = n
f.w = b
f.t = m
f.p = m
f.u = e
a.w = l
a.s = m
a.z = m
a.v = c
n.o = m
n.r = m
n.v = b
n.x = b
c.t = l
c.r = d
c.v = e
c.y = f
c.s = a
c.u = m
h.s = l
h.q = c
assert n.v.v.x.v.o.y.u.y.v.u.txt == "
class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: A = None
        self.x: A = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: C = None
        self.v: B = None
        self.y: F = None
        self.s: G = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: A = None
        self.z: C = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: A = None
        self.w: A = None
        self.t: E = None
        self.u: B = None
        self.p: E = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.s: E = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

b = A("b")
e = B("e")
d = C("d")
l = D("l")
m = E("m")
f = F("f")
a = G("a")
n = A("n")
c = B("c")
h = C("h")

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