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

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

class C:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.q: A = None
        self.p: D = None
        self.o: F = None
        self.t: F = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: D = None
        self.q: A = None
        self.p: D = None
        self.o: F = None
        self.t: F = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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

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