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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: I = None
        self.v: A = None
        self.p: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: G = None
        self.w: E = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: I = None
        self.v: A = None
        self.p: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: G = None
        self.w: E = None
        self.p: C = None
        self.txt = txt

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

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