class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: G = None
        self.z: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: E = None
        self.q: I = None
        self.z: A = None
        self.t: A = None
        self.w: A = None
        self.y: C = None
        self.p: F = None
        self.o: I = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: G = None
        self.r: C = None
        self.t: A = None
        self.txt = txt

b = A("b")
l = B("l")
a = C("a")
e = D("e")
f = E("f")
g = F("g")
n = G("n")
k = H("k")
m = I("m")

b.x = f
b.p = n
b.z = n
l.s = g
l.p = g
l.u = f
l.q = m
l.o = m
l.z = b
l.t = b
l.w = b
l.y = a
a.v = k
a.y = g
a.t = b
e.x = f
e.q = l
e.v = l
e.o = n
e.r = n
e.p = g
e.w = b
e.u = b
e.s = a
f.p = l
f.t = e
f.z = e
f.r = e
f.v = m
g.u = l
g.v = n
n.s = g
n.v = g
n.r = e
n.o = m
k.z = m
k.v = g
m.w = k
m.o = n
m.r = a
m.t = b
assert f.v.r.y.u.u.t.v.p.txt == "
class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: G = None
        self.z: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: E = None
        self.q: I = None
        self.z: A = None
        self.t: A = None
        self.w: A = None
        self.y: C = None
        self.p: F = None
        self.o: I = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.v: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: G = None
        self.r: C = None
        self.t: A = None
        self.txt = txt

b = A("b")
l = B("l")
a = C("a")
e = D("e")
f = E("f")
g = F("g")
n = G("n")
k = H("k")
m = I("m")

b.x = f
b.p = n
b.z = n
l.s = g
l.p = g
l.u = f
l.q = m
l.o = m
l.z = b
l.t = b
l.w = b
l.y = a
a.v = k
a.y = g
a.t = b
e.x = f
e.q = l
e.v = l
e.o = n
e.r = n
e.p = g
e.w = b
e.u = b
e.s = a
f.p = l
f.t = e
f.z = e
f.r = e
f.v = m
g.u = l
g.v = n
n.s = g
n.v = g
n.r = e
n.o = m
k.z = m
k.v = g
m.w = k
m.o = n
m.r = a
m.t = b
assert f.v.r.y.u.u.t.v.p.txt == "g"