class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.v: F = None
        self.z: H = None
        self.u: B = None
        self.q: G = None
        self.w: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: A = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: A = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

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