class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: F = None
        self.o: G = None
        self.w: H = None
        self.u: B = None
        self.v: H = None
        self.r: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: B = None
        self.o: G = None
        self.v: H = None
        self.x: H = None
        self.u: C = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: B = None
        self.t: E = None
        self.x: D = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

f = A("f")
h = B("h")
a = C("a")
l = D("l")
i = E("i")
d = F("d")
k = G("k")
c = H("c")

f.s = c
f.w = c
f.v = c
f.t = d
f.o = k
f.u = h
f.r = a
h.y = a
h.o = l
h.p = c
h.x = f
h.s = f
h.t = d
a.w = h
a.s = i
a.r = d
a.t = f
l.t = k
l.o = k
l.z = h
l.v = c
l.x = c
l.u = a
l.w = a
i.w = a
i.u = h
d.u = h
d.s = h
d.p = h
d.t = i
d.x = l
k.w = h
c.t = i
assert i.w.t.r.txt == "
class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: F = None
        self.o: G = None
        self.w: H = None
        self.u: B = None
        self.v: H = None
        self.r: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: B = None
        self.o: G = None
        self.v: H = None
        self.x: H = None
        self.u: C = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: B = None
        self.t: E = None
        self.x: D = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

f = A("f")
h = B("h")
a = C("a")
l = D("l")
i = E("i")
d = F("d")
k = G("k")
c = H("c")

f.s = c
f.w = c
f.v = c
f.t = d
f.o = k
f.u = h
f.r = a
h.y = a
h.o = l
h.p = c
h.x = f
h.s = f
h.t = d
a.w = h
a.s = i
a.r = d
a.t = f
l.t = k
l.o = k
l.z = h
l.v = c
l.x = c
l.u = a
l.w = a
i.w = a
i.u = h
d.u = h
d.s = h
d.p = h
d.t = i
d.x = l
k.w = h
c.t = i
assert i.w.t.r.txt == "a"