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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: C = None
        self.v: E = None
        self.z: B = None
        self.w: E = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: E = None
        self.p: D = None
        self.y: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: D = None
        self.o: D = None
        self.u: C = None
        self.txt = txt

i = A("i")
f = B("f")
a = C("a")
j = D("j")
k = E("k")
n = F("n")
h = B("h")

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: C = None
        self.v: E = None
        self.z: B = None
        self.w: E = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: E = None
        self.p: D = None
        self.y: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: D = None
        self.o: D = None
        self.u: C = None
        self.txt = txt

i = A("i")
f = B("f")
a = C("a")
j = D("j")
k = E("k")
n = F("n")
h = B("h")

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