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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: C = None
        self.o: A = None
        self.p: H = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: I = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: I = None
        self.x: E = None
        self.y: H = None
        self.u: C = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: G = None
        self.r: B = None
        self.x: A = None
        self.z: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.x: H = None
        self.q: I = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: C = None
        self.o: A = None
        self.p: H = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: I = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: I = None
        self.x: E = None
        self.y: H = None
        self.u: C = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: G = None
        self.r: B = None
        self.x: A = None
        self.z: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.x: H = None
        self.q: I = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

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

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

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