class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: H = None
        self.p: G = None
        self.w: F = None
        self.r: E = None
        self.x: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: G = None
        self.t: A = None
        self.z: C = None
        self.w: B = None
        self.s: H = None
        self.r: C = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: A = None
        self.o: A = None
        self.s: D = None
        self.v: D = None
        self.y: G = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: G = None
        self.t: A = None
        self.z: C = None
        self.w: B = None
        self.s: H = None
        self.r: C = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: A = None
        self.o: A = None
        self.s: D = None
        self.v: D = None
        self.y: G = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

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