class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: D = None
        self.s: C = None
        self.w: G = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: E = None
        self.v: B = None
        self.o: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.t: E = None
        self.v: B = None
        self.o: D = None
        self.txt = txt

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

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