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

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: G = None
        self.v: F = None
        self.y: E = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: H = None
        self.r: C = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: A = None
        self.s: B = None
        self.o: G = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: D = None
        self.o: H = None
        self.p: I = None
        self.y: D = None
        self.r: C = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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

b.z = i
b.t = g
b.v = n
e.y = h
e.v = l
f.t = h
f.v = h
f.q = a
f.y = c
f.r = n
l.y = e
l.t = g
l.r = f
l.p = a
c.y = g
c.t = i
c.s = e
c.o = a
c.q = f
h.q = g
h.o = g
h.s = l
h.y = l
h.z = l
h.p = n
h.r = f
a.y = h
g.v = e
g.o = l
g.x = c
g.p = f
g.z = h
n.t = h
i.z = b
i.t = g
i.v = n
assert e.v.t.p.txt == "
class A:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: H = None
        self.v: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: G = None
        self.v: F = None
        self.y: E = None
        self.r: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: H = None
        self.r: C = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: A = None
        self.s: B = None
        self.o: G = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.s: D = None
        self.o: H = None
        self.p: I = None
        self.y: D = None
        self.r: C = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

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

b.z = i
b.t = g
b.v = n
e.y = h
e.v = l
f.t = h
f.v = h
f.q = a
f.y = c
f.r = n
l.y = e
l.t = g
l.r = f
l.p = a
c.y = g
c.t = i
c.s = e
c.o = a
c.q = f
h.q = g
h.o = g
h.s = l
h.y = l
h.z = l
h.p = n
h.r = f
a.y = h
g.v = e
g.o = l
g.x = c
g.p = f
g.z = h
n.t = h
i.z = b
i.t = g
i.v = n
assert e.v.t.p.txt == "f"