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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: B = None
        self.v: D = None
        self.s: B = None
        self.u: D = None
        self.x: B = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.t: F = None
        self.o: B = None
        self.v: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: B = None
        self.v: D = None
        self.s: B = None
        self.u: D = None
        self.x: B = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: F = None
        self.t: F = None
        self.o: B = None
        self.v: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

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

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