class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: B = None
        self.z: E = None
        self.s: D = None
        self.v: B = None
        self.r: G = None
        self.q: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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

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