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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: H = None
        self.q: A = None
        self.p: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: H = None
        self.v: D = None
        self.s: G = None
        self.z: C = None
        self.u: D = None
        self.q: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: C = None
        self.s: E = None
        self.w: G = None
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

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

i.t = b
i.y = l
i.r = m
l.r = m
l.o = j
l.q = i
l.p = a
n.q = b
n.y = i
n.u = m
n.p = j
k.u = j
m.r = j
m.y = j
m.v = k
m.u = k
m.s = g
m.z = n
m.q = a
b.v = g
b.w = g
b.y = n
b.u = n
b.s = a
g.v = k
g.r = l
j.u = b
a.r = j
a.y = j
a.v = k
a.u = k
a.s = g
a.z = n
a.q = m
assert k.u.u.w.v.u.txt == "
class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: B = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: H = None
        self.q: A = None
        self.p: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.y: H = None
        self.v: D = None
        self.s: G = None
        self.z: C = None
        self.u: D = None
        self.q: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: C = None
        self.s: E = None
        self.w: G = None
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

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

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