class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: B = None
        self.p: E = None
        self.t: E = None
        self.s: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: C = None
        self.u: E = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: D = None
        self.y: F = None
        self.r: F = None
        self.txt = txt

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

f = A("f")
n = B("n")
i = C("i")
e = D("e")
d = E("d")
k = F("k")
b = D("b")
j = B("j")
h = E("h")
m = F("m")

f.w = j
f.q = j
f.p = h
f.t = h
f.s = k
n.q = h
n.x = m
n.s = j
i.t = k
i.w = k
e.x = b
e.z = i
e.y = i
e.u = d
d.w = h
d.v = b
d.y = m
d.r = k
k.q = b
k.t = i
b.x = e
b.z = i
b.y = i
b.u = h
j.q = h
j.x = m
j.s = n
h.w = d
h.v = e
h.y = k
h.r = k
m.q = e
m.t = i
assert i.t.q.x.z.w.t.w.q.u.r.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: B = None
        self.p: E = None
        self.t: E = None
        self.s: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: C = None
        self.u: E = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: D = None
        self.y: F = None
        self.r: F = None
        self.txt = txt

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

f = A("f")
n = B("n")
i = C("i")
e = D("e")
d = E("d")
k = F("k")
b = D("b")
j = B("j")
h = E("h")
m = F("m")

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