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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: E = None
        self.y: C = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: E = None
        self.y: C = None
        self.x: A = None
        self.txt = txt

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

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