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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: F = None
        self.x: F = None
        self.t: A = None
        self.q: I = None
        self.u: A = None
        self.r: G = None
        self.p: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: D = None
        self.r: H = None
        self.v: D = None
        self.q: C = None
        self.p: D = None
        self.w: G = None
        self.s: C = None
        self.t: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: E = None
        self.t: A = None
        self.z: E = None
        self.o: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: F = None
        self.x: F = None
        self.t: A = None
        self.q: I = None
        self.u: A = None
        self.r: G = None
        self.p: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: D = None
        self.r: H = None
        self.v: D = None
        self.q: C = None
        self.p: D = None
        self.w: G = None
        self.s: C = None
        self.t: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: E = None
        self.t: A = None
        self.z: E = None
        self.o: D = None
        self.txt = txt

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

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