class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: I = None
        self.t: I = None
        self.z: G = None
        self.y: A = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: H = None
        self.z: B = None
        self.q: E = None
        self.v: D = None
        self.p: B = None
        self.t: G = None
        self.w: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: E = None
        self.o: G = None
        self.v: F = None
        self.s: F = None
        self.r: G = None
        self.txt = txt

c = A("c")
j = B("j")
h = C("h")
b = D("b")
m = E("m")
d = F("d")
l = G("l")
a = H("a")
g = I("g")
n = A("n")

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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.p: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: I = None
        self.t: I = None
        self.z: G = None
        self.y: A = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: H = None
        self.z: B = None
        self.q: E = None
        self.v: D = None
        self.p: B = None
        self.t: G = None
        self.w: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: E = None
        self.o: G = None
        self.v: F = None
        self.s: F = None
        self.r: G = None
        self.txt = txt

c = A("c")
j = B("j")
h = C("h")
b = D("b")
m = E("m")
d = F("d")
l = G("l")
a = H("a")
g = I("g")
n = A("n")

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