Kokoro, by Natsume Soseki (paragraph #939)

先生は苦笑した。

translation

The teacher smiled wryly.

kanji (pronunciations & definitions)
先生: teacher (せんせい), instructor, master, sensei, title or form of address for a teacher, master, doctor, lawyer, etc. 苦笑: bitter smile (くしょう), wry smile, strained laugh, sarcastic laugh

Next paragraph