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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: A = None
        self.s: F = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: D = None
        self.x: A = None
        self.t: A = None
        self.p: C = None
        self.txt = txt

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

g = A("g")
c = B("c")
e = C("e")
f = D("f")
m = E("m")
i = F("i")
k = F("k")
h = D("h")

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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: A = None
        self.s: F = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: D = None
        self.x: A = None
        self.t: A = None
        self.p: C = None
        self.txt = txt

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

g = A("g")
c = B("c")
e = C("e")
f = D("f")
m = E("m")
i = F("i")
k = F("k")
h = D("h")

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