[Swift] 18108 - 1998년생인 내가 태국에서는 2541년생?!
//
// 18108-YearConvert.swift
// Algorithm
//
// Created by Yujean Cho on 2022/02/15.
//
import Foundation
var input = Int(readLine()!)!
print(input - 544 + 1)
//
// 18108-YearConvert.swift
// Algorithm
//
// Created by Yujean Cho on 2022/02/15.
//
import Foundation
var input = Int(readLine()!)!
func convert(year:Int) -> Int {
return (year - 544 + 1)
}
let result = convert(year: input)
print(result)