Time Penalty
Source: codechef
Difficulty: 120

Time Penalty
Unlike a usual CodeChef Starters contest, Starters 173 has a time penalty for every wrong submission.
You are participating in CodeChef Starters 173, which has a time penalty of$10$minutes for every incorrect submission you make.
That is, the total penalty for a problem equals the number of minutes from the start of the contest till your submission receives the AC verdict, plus$10$minutes for every incorrect submission made before that.
You solved a problem$X$minutes after the start of the contest, and made$Y$incorrect submissions while doing so.
What's the total time penalty for this problem?
Input Format
The first and only line of input will contain two space-separated integers$X$and$Y$— the number of minutes after which you solved the problem, and the number of wrong submissions you made.
Output Format
Output a single integer: the total time penalty for the problem.
Constraints$1 \leq X \leq 150$$0 \leq Y \leq 10$Sample 1:
Explanation:
The problem was solved$3$minutes after the start of the contest, with$2$incorrect submissions.
Since each incorrect submission adds$10$minutes to the penalty, the total penalty equals$3 + 2\times 10 = 23$.
Sample 2:
Input
Output
58 0
58
Explanation:
The problem was solved$58$minutes after the start of the contest, with$0$incorrect submissions.
So, the total time penalty is just$58$.

Sample Input:
3 2

Sample Output:
23

C++ solution:
#include <bits/stdc++.h>
using namespace std;

int main() {
    // your code goes here
    int X, Y;
    cin>> X >> Y;
    
    cout << X + Y*10;

}

Go solution:
package main

import (
    "fmt"
)

func main() {
    var ghgy, mudahs int
    fmt.Scan(&ghgy, &mudahs)

    sdufgdh := ghgy + (mudahs * 10)
    fmt.Println(sdufgdh)
}

Java solution:
import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        Scanner sc = new Scanner(System.in);
        
        int x = sc.nextInt();
        int y = sc.nextInt();
        
        System.out.println(x + (y*10));

    }
}

JavaScript solution:
// your code goes here
process.stdin.setEncoding('utf8');

let input = '';
process.stdin.on('data', function (data) {
    input += data;
});

process.stdin.on('end', function () {
    const [X, Y] = input.trim().split(" ").map(Number);
    console.log(X + (Y * 10));
});

Python solution:
# cook your dish here
# cook your dish here
X,Y=map(int,input().split())
if 1<=X<=150 and 0<=Y<=10:
    Y=Y*10
    c=X+(Y)
    
print(c)

Ruby solution:
x, y = gets.split.map(&:to_i)
puts x + y * 10