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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: B = None
        self.txt = txt

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

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

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

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

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

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