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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: E = None
        self.q: D = None
        self.s: G = None
        self.y: I = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: F = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: I = None
        self.p: C = None
        self.s: H = None
        self.t: G = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: H = None
        self.o: I = None
        self.w: I = None
        self.t: A = None
        self.p: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: E = None
        self.q: D = None
        self.s: G = None
        self.y: I = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: F = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: I = None
        self.p: C = None
        self.s: H = None
        self.t: G = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: H = None
        self.o: I = None
        self.w: I = None
        self.t: A = None
        self.p: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: B = None
        self.txt = txt

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

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

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